-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
26 lines (21 loc) · 690 Bytes
/
tox.ini
File metadata and controls
26 lines (21 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[tox]
envlist = python3.10
[gh-actions]
python =
3.10: python3.10
[mypy]
ignore_errors = pandas.*, numpy.*:651
[testenv]
deps =
-rrequirements_dev.txt
commands =
# stop the build if there are Python syntax errors or undefined names
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src --count --exit-zero --max-complexity=10 --max-line-length=150 --select=E --ignore=E501,E251 --statistics
# type linting
; mypy src/
# pytest unit
pytest -vv tests/unit/test_unit.py
# pytest integration
pytest -vv tests/integration/test_int.py