forked from jasoncorbett/ordered-startup-supervisord
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
63 lines (56 loc) · 1.5 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
#
# This file contains tox targets to perform python code syntax verification
#
[tox]
minversion = 2.5.0
skipsdist = true
skip_install = true
envlist = isort, flake8-{py27,py37}, {py27}-{supervisor-v3,supervisor-v4},py37-supervisor-v4
[flake8]
max-line-length = 120
builtins = _,_n,__request__
exclude = .git,.tox,.eggs,build
# E126: continuation line over-indented for hanging indent
ignore = E402,E126
[isort]
known_third_party = jinja2,mock,supervisor,toposort
known_first_party = ordered_startup_supervisord
#known_standard_library =
default_section=FIRSTPARTY
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
order_by_type = false
force_sort_within_sections = true
line_length = 100
skip = .git,.tox,.eggs,build
not_skip = __init__.py
[testenv]
sitepackages = False
deps =
-rrequirements-tests.txt
supervisor-v3: supervisor==3.4.0
supervisor-v4: supervisor>=4.0.0
commands =
python --version
pytest -v --basetemp=_pytest_temp {posargs}
[testenv:flake8]
# Disable site packages to avoid using system flake8 which uses hardcoded
# python path which imports the wrong libraries.
sitepackages = False
deps =
supervisor>=4.0.0
flake8
pep8-naming
commands =
flake8 --version
flake8
[testenv:flake8-py27]
deps = {[testenv:flake8]deps}
commands = {[testenv:flake8]commands}
[testenv:flake8-py37]
deps = {[testenv:flake8]deps}
commands = {[testenv:flake8]commands}
[testenv:isort]
deps = isort==4.3.4
commands =
python -c 'import isort; print(isort.__version__)'
isort --check-only --diff --settings-path .