Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move configurations to pyproject.toml #3632

Closed
wants to merge 10 commits into from
9 changes: 0 additions & 9 deletions .coveragerc

This file was deleted.

1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ repos:
hooks:
- id: mypy
exclude: ^docs/conf.py
args: ["--config", "pyproject.toml"]
additional_dependencies:
- types-dataclasses >= 0.1.3
- types-PyYAML
Expand Down
41 changes: 0 additions & 41 deletions mypy.ini

This file was deleted.

32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,35 @@ filterwarnings = [
# https://github.com/aio-libs/aiohttp/issues/6905
'''ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning''',
]

[tool.coverage.report]
omit = [
"src/blib2to3/*",
"tests/data/*",
"*/site-packages/*",
".tox/*"
]

[tool.coverage.run]
relative_files = true

[tool.mypy]
python_version = "3.7"
mypy_path = "src"
show_column_numbers = true
show_error_codes = true
strict = true
no_implicit_reexport = true
warn_unreachable = true

[[tool.mypy.overrides]]
module = [
"blib2to3.driver.*",
"IPython.*",
"colorama.*",
"pathspec.*",
"tokenize_rt.*",
"uvloop.*",
"_black_version.*"
]
ignore_missing_imports = true