forked from rustedpy/maybe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
47 lines (43 loc) · 1.35 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.mypy]
python_version = "3.11"
files = ["src", "tests"]
# Exclude files with pattern matching syntax until we drop support for Python
# versions that don't support pattern matching. Trying to use with an older
# Python version results in a "invalid syntax" error from mypy
exclude = "tests/test_pattern_matching.py"
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
no_implicit_reexport = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict_equality = true
strict_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.coverage.run]
# Ignore "Couldn't parse Python file" warnings produced when attempting to parse
# Python 3.10+ code using an earlier version of Python.
disable_warnings = ["couldnt-parse"]
[tool.pytest.ini_options]
addopts = [
"--tb=short",
"--cov=src",
"--cov-report=term-missing",
"--cov-report=xml",
# By default, ignore tests that only run on Python 3.10+
"--ignore=tests/test_pattern_matching.py",
]
testpaths = ["tests"]