Skip to content

Commit

Permalink
Add linters configs
Browse files Browse the repository at this point in the history
  • Loading branch information
olzhasar committed Oct 23, 2022
1 parent 160fd7e commit ecc7b52
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
exclude = .git, .tox, .mypy_cache, .pytest_cache, .venv
max-line-length = 89
ignore = E501, W503
27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,30 @@ build-backend = "poetry.core.masonry.api"
[tool.coverage.run]
source = ["pytest_watcher"]
omit = ['pytest_watcher/__main__.py']

[tool.isort]
profile = 'black'
line_length = 89

[tool.black]
line-length = 89
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
)
'''

[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
exclude = ".venv"

0 comments on commit ecc7b52

Please sign in to comment.