-
Notifications
You must be signed in to change notification settings - Fork 225
/
tox.ini
38 lines (31 loc) · 872 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
[tox]
[gh-actions]
[testenv:integration]
deps =
-rrequirements.txt
pytest
coverage
commands = coverage run --source pslab -m pytest
[testenv:lint]
deps = -rlint-requirements.txt
setenv =
INCLUDE_PSL_FILES = pslab/bus/ pslab/instrument/ pslab/serial_handler.py pslab/cli.py pslab/external/motor.py pslab/external/gas_sensor.py pslab/external/hcsr04.py
commands =
black --check {env:INCLUDE_PSL_FILES}
flake8 --show-source {env:INCLUDE_PSL_FILES}
bandit -q -r {env:INCLUDE_PSL_FILES}
pydocstyle {env:INCLUDE_PSL_FILES}
[testenv:docs]
deps =
sphinx>=1.8.4
-rdoc-requirements.txt
commands = sphinx-build -d docs/_build/doctrees docs docs/_build/html
[flake8]
max-line-length = 88
max-complexity = 10
select = B,C,E,F,W,T4,B9
# These rules conflict with black.
ignore = E203,W503
[pydocstyle]
convention = numpy
add-select = D212