Skip to content

Commit 28f3143

Browse files
committed
Move tests/pycodestyle.cfg to tox.ini
This makes manual pycodestyle calls pick up our project config
1 parent b4e62a8 commit 28f3143

3 files changed

Lines changed: 16 additions & 15 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def run(self):
5858

5959
print("running pycodestyle")
6060
style_guide = pycodestyle.StyleGuide(
61-
config_file='tests/pycodestyle.cfg',
61+
config_file='tox.ini',
6262
paths=files,
6363
)
6464
style_guide.options.exclude = pycodestyle.normalize_paths(

tests/pycodestyle.cfg

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +0,0 @@
1-
[pycodestyle]
2-
3-
format = pylint
4-
5-
# [E125] Continuation indent isn't different from next block
6-
# [E128] Not indented for visual style
7-
# [E129] visually indented line with same indent as next logical line
8-
# [E301] Blank lines between function definitions
9-
# [E303] Too many blank lines
10-
# [E402] module level import not at top of file
11-
# [E731] do not assign a lambda expression, use a def
12-
# [W504] line break after binary operator
13-
14-
ignore=E125,E128,E129,E301,E303,E402,E731,W504

tox.ini

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,18 @@ omit =
1919
/*/tests/*
2020
/usr/*
2121
*.tox/*
22+
23+
24+
[pycodestyle]
25+
format = pylint
26+
27+
# [E125] Continuation indent isn't different from next block
28+
# [E128] Not indented for visual style
29+
# [E129] visually indented line with same indent as next logical line
30+
# [E301] Blank lines between function definitions
31+
# [E303] Too many blank lines
32+
# [E402] module level import not at top of file
33+
# [E731] do not assign a lambda expression, use a def
34+
# [W504] line break after binary operator
35+
36+
ignore=E125,E128,E129,E301,E303,E402,E731,W504

0 commit comments

Comments
 (0)