forked from mdomke/schwifty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
71 lines (60 loc) · 1.15 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tox]
isolated_build = True
envlist = py{37,38,39,310,311},lint,lint-docs,fmt,mypy
[testenv]
deps =
pytest
pytest-cov
commands = pytest --cov {envsitepackagesdir}/schwifty {posargs} tests
[testenv:lint]
deps =
flake8
commands = flake8
[testenv:lint-docs]
deps =
doc8
pygments
commands = doc8 docs/source
[testenv:fmt]
skip_install = true
deps =
black==22.3.0
commands = black --check .
[testenv:mypy]
skip_install = true
deps =
mypy==0.910
types-setuptools
commands = mypy --ignore-missing-imports --disallow-untyped-defs --disallow-untyped-calls -p schwifty
[flake8]
ignore = H803,E203,W503
exclude =
.venv
.tox
build
dist
docs
*.egg
show-source = true
max-line-length = 100
[isort]
profile = black
force_alphabetical_sort_within_sections = True
force_single_line = True
line_length = 100
lines_after_imports = 2
[doc8]
max-line-length = 100
[pytest]
addopts =
--pyargs schwifty
--doctest-modules
--junit-xml test-results.xml
--cov-report html
--cov-report term-missing
console_output_style = progress
doctest_optionflags = ALLOW_UNICODE IGNORE_EXCEPTION_DETAIL
[coverage:run]
branch = True
[coverage:report]
exclude_lines = nocov