Add pyproject.toml with tooling configuration
pyproject.toml: Add configuration for black, coverage, isort and mypy.
This commit is contained in:
parent
53ffb80740
commit
4e24fe5da4
53
pyproject.toml
Normal file
53
pyproject.toml
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
[tool.black]
|
||||||
|
line-length = 120
|
||||||
|
exclude = '''
|
||||||
|
/(
|
||||||
|
\.direnv|
|
||||||
|
|\.eggs
|
||||||
|
|\.git
|
||||||
|
|\.hg
|
||||||
|
|\.mypy_cache
|
||||||
|
|\.nox
|
||||||
|
|\.tox
|
||||||
|
|\.venv
|
||||||
|
|\.svn
|
||||||
|
|_build
|
||||||
|
|build
|
||||||
|
|dist
|
||||||
|
)/
|
||||||
|
'''
|
||||||
|
|
||||||
|
[tool.coverage.path]
|
||||||
|
source = "."
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
||||||
|
omit = ["tests/*", ".tox/*"]
|
||||||
|
precision = 2
|
||||||
|
show_missing = true
|
||||||
|
|
||||||
|
[tool.coverage.run]
|
||||||
|
branch = true
|
||||||
|
command_line = "-m pytest -vv tests/"
|
||||||
|
omit = ["tests/*", ".tox/*"]
|
||||||
|
|
||||||
|
[tool.isort]
|
||||||
|
profile = "black"
|
||||||
|
multi_line_output = 3
|
||||||
|
|
||||||
|
[tool.mypy]
|
||||||
|
ignore_missing_imports = true
|
||||||
|
follow_imports = "silent"
|
||||||
|
follow_imports_for_stubs = true
|
||||||
|
warn_unused_ignores = true
|
||||||
|
warn_no_return = true
|
||||||
|
warn_return_any = true
|
||||||
|
warn_incomplete_stub = true
|
||||||
|
warn_redundant_casts = true
|
||||||
|
warn_unused_configs = true
|
||||||
|
no_implicit_optional = true
|
||||||
|
warn_unreachable = true
|
||||||
|
check_untyped_defs = true
|
||||||
|
disallow_any_generics = true
|
||||||
|
disallow_untyped_calls = true
|
||||||
|
disallow_untyped_defs = true
|
||||||
|
disallow_incomplete_defs = true
|
Loading…
Reference in New Issue
Block a user