-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
50 lines (42 loc) · 1005 Bytes
/
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
[tox]
isolated_build = true
skipsdist = true
envlist = py{36,37,38}
[tox:.package]
basepython = python3
[testenv]
deps =
flit
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
commands =
flit install --deps develop
python -m pytest tests/ --cov
python -m flake8 sidekick
python -m readme_renderer README.rst
python -m black . --check
[flake8]
# E127: over indents for visual indent
# E501: line > 79 characters
# W503 line break before binary operator
# E731 do not assign a lambda expression, use a def
ignore = E127, W503, E501, E731
exclude =
.git,
.tox,
__pycache__,
docs/conf.py,
tasks.py,
build,
dist,
tests,
max-complexity = 10
[pytest]
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ELLIPSIS
norecursedirs = .tox
testpaths = tests/
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
documentation: marks documentation tests (deselect with '-m "not documentation"')