-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
72 lines (63 loc) · 1.59 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[build-system]
requires = [
"Cython >= 0.29.32, < 4.0.0", # 0.29.31 includes noexcept keyword support
"setuptools >= 42.0.0", # Supports license_files
]
build-backend = "setuptools.build_meta"
# FUTURE: Mandate newer setuptools to use pyproject.toml configuration
# Currently it fails when using older pip versions that are still used by some
# Linux distributions with:
# WARNING: Generating metadata for package krb5 produced metadata for project name unknown. Fix your #egg=krb5 fragments.
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
[tool.mypy]
# mypy doesn't seem to like pyenv and extra typeshed libraries
exclude = "setup.py"
mypy_path = "$MYPY_CONFIG_FILE_DIR/src:$MYPY_CONFIG_FILE_DIR/stubs"
show_error_codes = true
show_column_numbers = true
disallow_any_unimported = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_reexport = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "--import-mode=importlib"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = sanity,py36,py37,py38,py39,py310
skip_missing_interpreters = true
isolated_build = True
[testenv]
deps =
-r{toxinidir}/requirements-dev.txt
commands =
python -m pytest -v
[testenv:sanity]
commands =
python -m black . --check
python -m isort . --check-only
python -m mypy .
"""