-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (45 loc) · 933 Bytes
/
tox.ini
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
[tox]
envlist = py39,flake8,format,mypy
;TODO: coverage
isolated_build = true
[testenv]
locked_deps =
pytest
pytest-mock
commands =
pytest
[testenv:flake8]
locked_deps =
flake8
commands =
flake8 ambramelin tests
[testenv:format]
locked_deps =
black
isort
docformatter
commands =
black . --check
isort . --check --profile=black
docformatter . --recursive --check --wrap-summaries 88 --wrap-descriptions 88 --pre-summary-newline
[testenv:mypy]
locked_deps =
mypy
commands =
mypy --config-file {toxinidir}/tox.ini ambramelin tests
[flake8]
max-line-length = 88
max-doc-length = 88
ignore = E203
[pytest]
python_files = test_*.py
[mypy]
disallow_untyped_calls = True
disallow_untyped_defs = True
no_implicit_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_no_return = True
warn_unreachable = True
show_error_codes = True
ignore_missing_imports = True