-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtox.ini
More file actions
67 lines (59 loc) · 1.18 KB
/
tox.ini
File metadata and controls
67 lines (59 loc) · 1.18 KB
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
[tox]
envlist = py37, py38, py39
[testenv]
commands = pytest
deps=
pytest
-rrequirements.txt
-rdocs/requirements.txt
# Linters
[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-bugbear
flake8-docstrings>=1.3.1
flake8-import-order>=0.9
flake8-typing-imports>=1.1
pep8-naming
commands =
flake8
# Flake8 Configuration
[flake8]
max-line-length = 80
max-complexity = 18
select = B,C,E,F,W,T4,B9
ignore = E203, E266, E501, W503, F403, F401, C901
per-file-ignores =
src/pptrees/node_data/*: E101, W191
src/pptrees/YosysAdder.py: W605
exclude =
.tox,
.git,
__pycache__,
docs/conf.py,
build,
dist,
tests/fixtures/*,
*.pyc,
*.egg-info,
.cache,
.eggs
import-order-style = google
application-import-names = flake8
# isort Configuration
[isort]
line_length = 80
multi_line_output = 3
include_trailing_comma = True
known_third_party = celery,django,environ,pyquery,pytz,redis,requests,rest_framework
[testenv:docs]
commands =
py.test --doctest-glob="*.md" --doctest-glob="README.md" README.md
[testenv:mypy]
skip_install = True
deps =
mypy
commands=
mypy . ignore-missing-imports --pretty