-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
89 lines (80 loc) · 2.02 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Project's general Python settings
# ### ISORT config
[tool.isort]
profile = "black"
combine_as_imports = true
default_section = "THIRDPARTY"
sections = [
"FUTURE",
"STDLIB",
"THIRDPARTY",
"FIRSTPARTY",
"LOCALFOLDER"
]
import_heading_stdlib = "Python imports"
import_heading_thirdparty = "external imports"
import_heading_firstparty = "app imports"
import_heading_localfolder = "local imports"
known_first_party = "mailsrv_aux"
[tool.mypy]
python_version = "3.9"
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
warn_unused_configs = true
ignore_missing_imports = false
[tool.tox]
legacy_tox_ini = """
[tox]
minversion = 3.26.0
[testenv:util]
basepython = python3
deps =
-r {toxinidir}/requirements/util.txt
envdir = {toxworkdir}/util
setenv =
PYTHONDONTWRITEBYTECODE=1
passenv = SSH_AUTH_SOCK
skip_install = true
commands =
{posargs:pre-commit run}
[testenv:typechecking]
basepython = {[testenv:util]basepython}
deps =
-r {toxinidir}/requirements/mypy.txt
# This environment must install the actual dependencies of the Python-parts
# of the repository to enable typechecking.
# -r {toxinidir}/requirements/test_suite.txt
envdir = {toxworkdir}/typechecking
setenv =
PYTHONDONTWRITEBYTECODE=1
skip_install = true
commands =
{posargs:mypy}
[testenv:docs]
basepython = {[testenv:util]basepython}
changedir = {toxinidir}/docs
deps =
-r {toxinidir}/requirements/documentation.txt
envdir = {toxworkdir}/docs
setenv =
PYTHONDONTWRITEBYTECODE=1
skip_install = true
whitelist_externals =
make
commands =
{posargs:make html}
[testenv:docs-serve]
basepython = {[testenv:docs]basepython}
changedir = {toxinidir}/docs/build/html
deps = {[testenv:docs]deps}
envdir = {[testenv:docs]envdir}
setenv = {[testenv:docs]setenv}
skip_install = {[testenv:docs]skip_install}
commands =
python -m http.server {posargs:8082}
"""