-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
55 lines (45 loc) · 810 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
[base]
name = netsalt
testdeps =
mock
pytest
max_line_length = 100
[tox]
envlist =
lint
py{38,39}
docs
minversion = 3.1.0
# ignore basepython for envs that already specify a version
ignore_basepython_conflict = true
[testenv]
deps = {[base]testdeps}
commands = pytest
[testenv:lint]
basepython = python3
deps =
pycodestyle
pylint
pydocstyle
black
commands =
pycodestyle --exclude=tests netsalt
pylint --ignore=tests netsalt
[testenv:format]
deps = black
commands =
black --line-length {[base]max_line_length} {[base]name}
[testenv:docs]
changedir = doc
deps =
sphinx
alabaster
commands = make html
whitelist_externals = make
[pycodestyle]
ignore=W503,E731,W605,E203
max-line-length=100
[gh-actions]
python =
3.9: py39, lint
3.10: py310