-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
54 lines (46 loc) · 837 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
[base]
name = dyngdim
max_line_length = 100
testdeps =
mock
pytest
[tox]
envlist =
lint
isort
py3
[testenv]
deps = {[base]testdeps}
commands = pytest
[testenv:lint]
basepython = python3
deps =
pycodestyle
astroid
pylint
isort
black
commands =
pycodestyle --exclude=tests dyngdim
isort --check-only --diff {[base]name}
black --check --line-length {[base]max_line_length} {[base]name}
pylint --ignore=tests dyngdim
[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
[pycodestyle]
ignore=W503,E731,W605
max-line-length=100
[isort]
line_length=100
profile=black
[gh-actions]
python =
3.7: py37, lint
3.8: py38