-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
62 lines (56 loc) · 1.27 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
[tox]
envlist = py38,py39,py310,py311,py312,py313,flake8
isolated_build = True
[testenv]
whitelist_externals =
poetry
skip_install = True
skipsdist = True
commands_pre =
poetry config virtualenvs.create false
poetry install --only main --only test
commands =
poetry run pytest {posargs}
[testenv:flake8]
commands_pre =
poetry config virtualenvs.create false
poetry install --no-root --only lint
commands =
poetry run flake8 . {posargs}
# Other tools
[flake8]
exclude =
./.*,
__pycache__/,
htmlcov/,
venv/,
tests/packages,
semver.py,
dist,
build,
max-line-length=100
ignore =
# D10{0..4} Missing docstring in public {module,class,method,function,package}
# D105: Missing docstring in magic method
# D107: Missing docstring in __init__
D100, D101, D102, D103, D104, D105, D107
# The default ignore list:
# E121, E123, E126, E133, E226, E24, E704, W503, W504
# W503: line break occurred before a binary operator
W503,
# E741: ambiguous variable name 'l'
E741,
[coverage:run]
# branch = True
source =
st_package_reviewer
tests
omit =
st_package_reviewer/lib/*
[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
@(abc\.)?abstractmethod
if debug_active\(\):
if __name__ == ['"]__main__['"]: