Skip to content

Commit d996102

Browse files
committed
updated to flake8 standards of linting
1 parent 1460848 commit d996102

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pylinter/run-mccabe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ast
2+
import sys
23
import mccabe
34
from .utils import collect_sources
45

@@ -28,4 +29,4 @@ def main():
2829

2930

3031
if __name__ == "__main__":
31-
main()
32+
main()

pylinter/run-pyflakes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import subprocess
23

34
from .utils import collect_sources
@@ -15,7 +16,7 @@ def ignore(p):
1516

1617
def run_pyflakes():
1718
cmd = ["pyflakes"]
18-
cmd.extend(collect_sources(ignore_func = ignore))
19+
cmd.extend(collect_sources(ignore_func=ignore))
1920
return subprocess.call(cmd)
2021

2122

pylinter/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ def collect_sources(ignore_func):
66
for py_path in top_path.walkfiles("*.py"):
77
py_path = py_path.normpath() # get rid of the leading '.'
88
if not ignore_func(py_path):
9-
yield py_path
9+
yield py_path

0 commit comments

Comments
 (0)