|
2 | 2 | requires = ["setuptools~=60.5", "wheel~=0.37.1"] |
3 | 3 | build-backend = "setuptools.build_meta" |
4 | 4 |
|
| 5 | +[tool.isort] |
| 6 | +# https://pycqa.github.io/isort/docs/configuration/options.html |
| 7 | +multi_line_output = 4 |
| 8 | +line_length = 72 |
| 9 | +combine_as_imports = true |
| 10 | +force_sort_within_sections = true |
| 11 | +known_first_party = [ |
| 12 | + "python_typing_update", |
| 13 | + "tests", |
| 14 | +] |
| 15 | +forced_separate = ["tests"] |
| 16 | + |
5 | 17 | [tool.pytest.ini_options] |
| 18 | +testpaths = ["tests"] |
| 19 | +norecursedirs = ["fixtures"] |
| 20 | +console_output_style = "count" |
| 21 | +log_level = "NOTSET" |
6 | 22 | asyncio_mode = "auto" # https://github.com/pytest-dev/pytest-asyncio#modes |
| 23 | + |
| 24 | +[tool.mypy] |
| 25 | +# https://mypy.readthedocs.io/en/stable/config_file.html |
| 26 | +python_version = 3.8 |
| 27 | +show_error_codes = true |
| 28 | +ignore_missing_imports = true |
| 29 | +strict = true |
| 30 | +follow_imports = "normal" |
| 31 | +exclude = "tests/fixtures/.+\\.py" |
| 32 | +# Untyped definitions and calls |
| 33 | +disallow_untyped_calls = true |
| 34 | +disallow_untyped_defs = true |
| 35 | +disallow_incomplete_defs = true |
| 36 | +check_untyped_defs = true |
| 37 | +# None and optional handeling |
| 38 | +no_implicit_optional = true |
| 39 | +strict_optional = true |
| 40 | +# Configure warnings |
| 41 | +warn_redundant_casts = true |
| 42 | +warn_unused_ignores = true |
| 43 | +warn_unused_configs = true |
| 44 | +# Misc |
| 45 | +implicit_reexport = false |
| 46 | +strict_equality = true |
| 47 | +enable_error_code = ["ignore-without-code"] |
| 48 | +# TODO |
| 49 | +allow_any_generics = true |
| 50 | + |
| 51 | +# [[tool.mypy.overrides]] |
| 52 | +# module = "tests.*" |
| 53 | +# # Untyped definitions and calls |
| 54 | +# disallow_untyped_calls = false |
| 55 | +# disallow_untyped_defs = false |
| 56 | +# disallow_incomplete_defs = false |
0 commit comments