Skip to content

Commit

Permalink
Configure ptyest, isort and mypy in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin authored Nov 10, 2022
1 parent e0243ad commit 1c55de6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,31 @@ include = [
"/README.md",
"/LICENSE.txt",
]

[tool.pytest.ini_options]
xfail_strict = true
python_classes = ["Test", "*TestCase"]
filterwarnings = [
"error:There is no current event loop:DeprecationWarning:tornado.ioloop",
]

[tool.isort]
profile = "black"

[tool.mypy]
mypy_path = "src"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
no_implicit_reexport = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
27 changes: 0 additions & 27 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,3 @@
ignore = E501, E203, W503, W504
exclude=./docs/conf.py
max-line-length=99

[tool:pytest]
xfail_strict = true
python_classes = Test *TestCase
filterwarnings =
error:There is no current event loop:DeprecationWarning:tornado.ioloop

[isort]
profile=black

[mypy]
mypy_path = src
check_untyped_defs = True
disallow_any_generics = True
disallow_incomplete_defs = True
disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
disallow_untyped_defs = True
no_implicit_optional = True
no_implicit_reexport = True
show_error_codes = True
strict_equality = True
warn_redundant_casts = True
warn_return_any = True
warn_unused_configs = True
warn_unused_ignores = True

0 comments on commit 1c55de6

Please sign in to comment.