forked from sscpac/statick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (52 loc) · 1.52 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
[tox]
envlist = py39, py310, py311
skip_missing_interpreters = true
[pytest]
norecursedirs = .tox build docs examples
# To work with black some items must be ignored.
# https://github.com/psf/black#how-black-wraps-lines
# We also set a HUGE maximum line length so that black is in charge of our line lengths, not flake8.
[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
max-line-length = 9000
# 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.9: py39
3.10: py310
3.11: py311
[testenv]
changedir = {toxinidir}/output-{envname}
passenv = CI
setenv = PY_IGNORE_IMPORTMISMATCH = 1
deps =
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 =
pytest \
--cov={toxinidir}/statick_tool \
--cov-report term-missing \
--doctest-modules \
--junit-xml=statick-{envname}-junit.xml \
--junit-prefix={envname} \
{toxinidir} {posargs}
coverage xml