-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
50 lines (46 loc) · 1.29 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
[tox]
envlist = py38, py39, py310, py311
skip_missing_interpreters = true
[pytest]
norecursedirs = .tox
# 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
[gh-actions]
python =
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 =
pycodestyle
pydocstyle
pytest
pytest-cov
pytest-isort
.[test]
commands =
pydocstyle ../src/
pycodestyle --ignore=E203,E501,W503 ../src/
pytest --isort \
--cov=statick_tool.plugins.discovery.markdown_discovery_plugin \
--cov=statick_tool.plugins.discovery.rst_discovery_plugin \
--cov=statick_tool.plugins.tool.markdownlint_tool_plugin \
--cov=statick_tool.plugins.tool.proselint_tool_plugin \
--cov=statick_tool.plugins.tool.rstlint_tool_plugin \
--cov=statick_tool.plugins.tool.rstcheck_tool_plugin \
--cov=statick_tool.plugins.tool.writegood_tool_plugin \
--cov-report term-missing \
--doctest-modules \
{toxinidir} {posargs}
coverage xml