-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
40 lines (38 loc) · 1.08 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
# TODO: implement doc linting
[tox]
envlist = py{38,39,310,311,312}-lint, py38-lintdocstrings, py38-lintreadme, py{38,39,310,311,312}-mypy, py{38,39,310,311,312}-unit
source_dir = gxformat2
test_dir = tests
[gh-actions]
python =
3.8: py38-unit, py38-mypy, py38-lint, py38-lintdocs, py39-lintdocstrings
3.9: py39-unit, py39-mypy
3.10: py310-unit, py310-mypy
3.11: py311-unit, py311-mypy
3.12: py312-unit, py312-mypy, py312-lint, py312-lintdocs
[testenv]
commands =
unit: pytest {posargs}
lintdocstrings: flake8 gxformat2
lint: flake8 {posargs}
lintreadme: make lint-readme
lintdocs: make lint-docs
mypy: make mypy
deps =
lint: flake8-import-order
lint: flake8-bugbear
lint,lintdocstrings: flake8
lintdocs: -rdocs/requirements.txt
lintdocstrings: flake8_docstrings
mypy: mypy
mypy: types-PyYAML
mypy: types-requests
unit: -rrequirements.txt
unit: -rdev-requirements.txt
lintreadme: readme
skip_install =
lint,lintdocstrings,lintreadme: True
allowlist_externals =
lintreadme: make
lintdocs: make
mypy: make