forked from falconry/token-bucket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (38 loc) · 1.13 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
[testenv]
deps = -r{toxinidir}/requirements/tests
package = editable
passenv = CI
commands = pytest \
--cov=src \
--cov-report=xml \
--cov-report=term \
--cov-config=pyproject.toml \
{posargs:tests}
# --------------------------------------------------------------------
# Typing
# --------------------------------------------------------------------
[testenv:mypy]
skip_install = true
deps = mypy
commands = mypy {posargs:src}
# --------------------------------------------------------------------
# Style
# --------------------------------------------------------------------
[flake8]
; But do please try to stick to 80 unless it makes the code ugly
max-line-length = 99
inline-quotes = double
max-complexity = 10
import-order-style = google
application-import-names = token_bucket
exclude = .tox,.venv,dist,docs,*.egg,.git,_build,build
[testenv:pep8]
skip_install = true
deps = flake8
flake8-quotes
flake8-import-order
commands = flake8 {posargs:.}
# --------------------------------------------------------------------
# Documentation
# --------------------------------------------------------------------
# TODO