forked from fossasia/pslab-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
42 lines (33 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
38
39
40
41
[tox]
[testenv:unit]
deps =
-rrequirements.txt
pytest
pytest-mock
coverage
commands = coverage run --source PSL -m pytest
[testenv:integration]
deps = {[testenv:unit]deps}
commands = coverage run --source PSL -m pytest --integration
[testenv:record]
deps = {[testenv:unit]deps}
commands = coverage run --source PSL -m pytest --record
[testenv:lint]
deps = -rlint-requirements.txt
setenv =
INCLUDE_PSL_FILES = PSL/achan.py PSL/digital_channel.py PSL/logic_analyzer.py PSL/oscilloscope.py PSL/packet_handler.py PSL/waveform_generator.py PSL/multimeter.py PSL/motor.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
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
ignore = E203,E231,W503 # Conflict with black.
[pydocstyle]
convention = numpy