/
tox.ini
63 lines (54 loc) · 1.27 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
[tox]
envlist = flake8,py3,typing
[testenv]
commands = pytest {posargs} duecredit
deps = -r{toxinidir}/requirements.txt
[testenv:flake8]
deps =
flake8
flake8-bugbear
flake8-builtins
flake8-unused-arguments
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:typing]
deps =
mypy
types-requests
commands =
mypy --ignore-missing-imports {posargs} duecredit/
[flake8]
doctests = True
extend-exclude = .venv,venv-debug,venvs,build,dist,doc,git/ext/
max-line-length = 120
unused-arguments-ignore-stub-functions = True
extend-select = B901,B902,B950
extend-ignore = A003,E203,E501,U101
[isort]
atomic = True
force_sort_within_sections = True
honor_noqa = True
lines_between_sections = 1
profile = black
reverse_relative = True
sort_relative_in_force_sorted_sections = True
known_first_party = duecredit
[pytest]
addopts =
--cov=duecredit
# Explicitly setting the path to the coverage config file is necessary due
# to some tests spawning subprocesses with changed working directories.
--cov-config=tox.ini
--tb=short
--durations=10
filterwarnings =
# TODO: review/address all warnings
# error
[coverage:run]
branch = True
parallel = True
[coverage:paths]
source =
duecredit
.tox/**/site-packages/duecredit