-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
54 lines (45 loc) · 957 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
[tox]
envlist = flake8,mypy,unit,cram
[testenv:flake8]
deps = flake8
skipsdist = True
skip_install = True
commands = flake8 src/csvmodel/ tests/unit/
[testenv:mypy]
deps =
mypy
pydantic
skipsdist = True
skip_install = True
commands = mypy src/csvmodel/ tests/unit/
[testenv:unit]
deps =
pytest
pytest-cov
commands = pytest --cov=csvmodel --cov-report=term-missing --cov-report=html -vv tests/unit/ {posargs}
[testenv:cram]
deps = cram
commands = cram tests/cram/
[testenv:publish]
deps =
cram
build
twine
passenv =
TWINE_USERNAME
TWINE_PASSWORD
allowlist_externals = bash
commands = bash publish.sh {posargs}
[flake8]
max-line-length = 90
[coverage:report]
fail_under = 80
exclude_lines =
# Re-enable default
pragma: no cover
# Don't complain if non runnable code doesn't run
if __name__ == .__main__.:
# Don't complain about abstractmethods
@(abc\.)?abstractmethod
omit =
*/main.py