forked from KENDAXA-Development/pdf-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (46 loc) · 1.12 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
[tox]
envlist = flake8,clean,py37,py38,report
[testenv]
deps = -r requirements.test.txt
commands = coverage run --include='pdf_utils/*' --branch -m unittest discover -s tests/
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report --skip-empty
coverage html --skip-empty --title="PDF Tools Coverage Report" -d htmlcov
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:flake8]
deps =
flake8
flake8-import-order
flake8-builtins
flake8-docstrings
skip_install = true
commands = flake8 pdf_utils/ tests/
[flake8]
ignore = D105, # missing docstring in magic method
D107 # missing docstring in __init__
max-complexity = 10
max-line-length = 120
import-order-style = pycharm
application-import-names = pdf_utils, tests
application-package-names = pdf_utils
per-file-ignores =
*/__init__.py:D104 # aslfkj
pdf_utils/__init__.py: D104,F401
# In tests, docstrings are not strictly enforced
tests/*: D100,D101,D102,D104
exclude =
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
.eggs