forked from barahona-research-group/hcga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (55 loc) · 964 Bytes
/
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
62
63
64
[base]
name = hcga
max_line_length = 100
testdeps =
mock
pytest
[tox]
envlist =
lint
isort
py3
docs
[testenv]
deps = {[base]testdeps}
commands = pytest
[testenv:lint]
basepython = python3
deps =
pycodestyle
astroid
pylint
isort
black
commands =
pycodestyle --exclude=tests hcga
isort --check-only --diff {[base]name}
black --check --line-length {[base]max_line_length} {[base]name}
pylint --ignore=tests hcga
[testenv:format]
deps =
black
isort
commands =
isort {[base]name}
isort tests
black --line-length {[base]max_line_length} {[base]name}
black --line-length {[base]max_line_length} tests
[testenv:docs]
changedir = doc
deps =
sphinx
alabaster
commands = make html
allowlist_externals = make
[pycodestyle]
ignore=W503,E731,W605
max-line-length=120
[isort]
line_length=100
profile=black
[gh-actions]
python =
3.8: py38, lint
3.9: py39
3.10: py310