forked from sscpac/statick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
61 lines (56 loc) · 1.58 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
[tox]
envlist = py37, py38, py39, py310, py311
skip_missing_interpreters = true
[pytest]
flake8-max-line-length = 9000
norecursedirs = .tox build docs examples
# To work with black some items must be ignored.
# https://github.com/psf/black#how-black-wraps-lines
[flake8]
exclude = .tox,tests/plugins/tool/black_tool_plugin/valid_package/format_errors.py,tests/plugins/tool/isort_tool_plugin/valid_package/*.py
ignore = E126, E203, E231, E241, W503, W504
# To work with black a specific configuration is required.
# https://github.com/psf/black#how-black-wraps-lines
[isort]
known_first_party = statick_tool
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
line_length = 88
honor_noqa = True
skip_glob = **/tests/plugins/tool/isort_tool_plugin/valid_package/*.py
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
changedir = {toxinidir}/output-{envname}
passenv = CI
setenv = PY_IGNORE_IMPORTMISMATCH = 1
deps =
codecov
deprecated
flake8<5 # Pin until https://github.com/tholo/pytest-flake8/issues/87 is fixed.
flake8-pep3101
pycodestyle
pydocstyle
pytest
pytest-cov
pytest-flake8
pytest-isort
.[test]
commands =
pydocstyle ../statick_tool/
pycodestyle --ignore=E203,E501,W503 ../statick_tool/
pytest --flake8 --isort \
--cov={toxinidir}/statick_tool \
--cov-report term-missing \
--doctest-modules \
--junit-xml=statick-{envname}-junit.xml \
--junit-prefix={envname} \
{toxinidir} {posargs}
coverage xml