forked from markowanga/stweet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
62 lines (56 loc) · 1.87 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[tox]
envlist = pep8,docstyle,tests&cov
skipsdist = True
[testenv:pep8]
deps =
flake8
basepython = python3
commands =
flake8 {posargs}
[testenv:docstyle]
deps =
pydocstyle
basepython = python3
commands =
pydocstyle --verbose {posargs}
[testenv:tests&cov]
deps =
pytest
pytest-cov
-rrequirements.txt
basepython = python3
setenv =
PYTHONPATH={toxinidir}/
COV_CORE_CONFIG={toxinidir}/.coveragerc
commands =
docker-compose -f {toxinidir}/test-services-docker-compose.yml up -d
pytest -s tests --cov-fail-under=100 --cov-report=xml --cov-report=term --cov=stweet
docker-compose -f {toxinidir}/test-services-docker-compose.yml stop
docker-compose -f {toxinidir}/test-services-docker-compose.yml rm -f
[flake8]
# W503 - is said to be incompatible with current PEP8, however flake8 is
# not updated to handle it
# W504 skipped because it is overeager and unnecessary
ignore = W503,W504
per-file-ignores = __init__.py:F401
show-source = True
exclude = .git,.venv,.tox,dist,doc,*egg,build,venv,tests,tmp
import-order-style = pep8
max-line-length = 120
[pydocstyle]
# D104 Missing docstring in public package
# D203 1 blank line required before class docstring
# D213 Multi-line docstring summary should start at the second line
# D214 Section is over-indented
# D215 Section underline is over-indented
# D401 First line should be in imperative mood; try rephrasing
# D405 Section name should be properly capitalized
# D406 Section name should end with a newline
# D407 Missing dashed underline after section
# D408 Section underline should be in the line following the section’s name
# D409 Section underline should match the length of its name
# D410 Missing blank line after section
# D411 Missing blank line before section
ignore = D104,D203,D213,D214,D215,D401,D405,D406,D407,D408,D409,D410,D411
match-dir = ^(?!\.tox|venv|tests|tmp).*
match = ^(?!setup).*\.py