forked from galaxyproject/gxformat2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
37 lines (35 loc) · 1.01 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
# TODO: implement doc linting
[tox]
envlist = py{36,37,38,39}-lint, py36-lintdocstrings, py36-lintreadme, py{36,37,38,39}-mypy, py{36,37,38,39}-unit
source_dir = gxformat2
test_dir = tests
[gh-actions]
python =
3.6: py36-unit, py36-mypy, py36-lint, py36-lintdocs, py36-lintdocstrings
3.7: py37-unit, py37-mypy
3.8: py38-unit, py38-mypy
3.9: py39-unit, py39-mypy, py39-lint, py39-lintdocs
[testenv]
commands =
unit: pytest {posargs}
lintdocstrings: flake8 gxformat2
lint: flake8 {posargs}
lintreadme: make lint-readme
lintdocs: make lint-docs
mypy: mypy gxformat2 {posargs}
deps =
lint: flake8-import-order
lint: flake8-bugbear
lint,lintdocstrings: flake8
lintdocstrings: flake8_docstrings
mypy: mypy
mypy: types-PyYAML
mypy: types-requests
unit,lintdocs: -rrequirements.txt
unit,lintdocs: -rdev-requirements.txt
lintreadme: readme
skip_install =
lint,lintdocstrings,lintreadme: True
whitelist_externals =
lintreadme: make
lintdocs: make