-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
executable file
·81 lines (69 loc) · 1.33 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[tox]
envlist =
checkers
py{38}
# py{36,37,38,39}
doc
# Run tests
[testenv]
deps =
pytest
pytest-cov
commands =
pytest --cov=pyweblogalyzer --color=yes --cov-fail-under=50 --cov-report term-missing --cov-report html --cov-report=xml test
# Run formatter syntax checker, and type checker
[testenv:checkers]
basepython = python3
skip_install = true
deps =
isort
black
flake8
mypy
commands =
isort src
black --line-length 120 src/
flake8
mypy --strict src
[black]
line-length=120
[isort]
known_first_party=pyweblogalyzer
multi_line_output=3
include_trailing_comma=true
force_grid_wrap=0
use_parentheses=true
line_length=120
[flake8]
ignore = E203, E266, E501, W503
max-line-length = 120
exclude = .git,__pycache__,doc/,docs/,build/,dist/,archive/,lib,pyvenv,setup.py
per-file-ignores =
__init__.py:F401
# max-complexity = 18
# select = B,C,E,F,W,T4
[mypy]
files=src/*
ignore_missing_imports=true
[coverage:paths]
source = src
[coverage:run]
branch = true
parallel = true
cover_pylib = false
omit =
pyvenv/*
test/*
#*/site-packages/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
RuntimeError
NotImplementedError
FileNotFoundError
ImportError
[coverage:html]
directory = docs/coverage
[coverage:xml]
output = docs/coverage/coverage.xml