8000 Add tox env for running flake8 lint (#238) · jcsdatera/client_python@524b616 · GitHub
[go: up one dir, main page]

Skip to content

Commit 524b616

Browse files
bz2brian-brazil
authored andcommitted
Add tox env for running flake8 lint (prometheus#238)
Add ignore rules for all current lint failures, they can be tackled in follow up branches along with enabling each rule.
1 parent b866384 commit 524b616

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

tox.ini

Lines changed: 45 additions & 1 deletion
10000
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = coverage-clean,py26,py27,py34,py35,py36,pypy,{py27,py36}-nooptionals,coverage-report
2+
envlist = coverage-clean,py26,py27,py34,py35,py36,pypy,{py27,py36}-nooptionals,coverage-report,flake8
33

44

55
[base]
@@ -44,3 +44,47 @@ skip_install = true
4444
commands =
4545
coverage combine
4646
coverage report
47+
48+
49+
[testenv:flake8]
50+
deps =
51+
flake8==3.5.0
52+
flake8-docstrings==1.3.0
53+
flake8-import-order==0.16
54+
skip_install = true
55+
commands =
56+
flake8 prometheus_client/ tests/ setup.py
57+
58+
59+
[flake8]
60+
ignore =
61+
D,
62+
I,
63+
E111,
64+
E114,
65+
E123,
66+
E126,
67+
E127,
68+
E128,
69+
E231,
70+
E222,
71+
E225,
72+
E226,
73+
E251,
74+
E302,
75+
E303,
76+
E305,
77+
E306,
78+
E402,
79+
E501,
80+
E722,
81+
E741,
82+
F401,
83+
F403,
84+
F405,
85+
F811,
86+
F841,
87+
W293,
88+
W503
89+
import-order-style = google
90+
application-import-names = prometheus_client

0 commit comments

Comments
 (0)
0