-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
49 lines (42 loc) · 845 Bytes
/
Copy pathtox.ini
File metadata and controls
49 lines (42 loc) · 845 Bytes
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
[tox]
skipsdist = True
basepython = python3.9
ignore_basepython_conflict = True
envlist = py39, flake8, typecheck,lint
recreate = False
[testenv]
envdir = {toxworkdir}/env
whitelist_externals=*
passenv =
*
PYTHONPATH
setenv =
ENV_FILE={env:ENV_FILE:.env.tox}
PYTHONPATH = {toxinidir}
deps =
-r requirements_dev.txt
[testenv:py39]
commands = pytest {posargs}
[testenv:typecheck]
commands =
mypy --config-file=tox.ini src
[testenv:lint]
commands =
flake8
black --check src/ tests/
isort --check-only src/ tests/
[testenv:fmt]
commands =
black src/ tests/
isort src/ tests/
[flake8]
exclude = .tox,venv
max-line-length = 120
max-complexity = 10
ignore = E203,W503,W504,I001
enable-extensions=G
[mypy]
python_version = 3.9
ignore_missing_imports = True
incremental = True
check_untyped_defs = True