Merge "Run all flake8 checks"
This commit is contained in:
commit
066b4653a5
|
@ -162,8 +162,8 @@ under the License."""
|
||||||
if stripped_apache2 in content:
|
if stripped_apache2 in content:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
print ("<license>!=<apache2>:\n'%s' !=\n'%s'" %
|
print("<license>!=<apache2>:\n'%s' !=\n'%s'" %
|
||||||
(content, stripped_apache2))
|
(content, stripped_apache2))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,5 +35,5 @@ def no_vim_headers(physical_line, line_number, lines):
|
||||||
Okay: # vim, ze nemluvis cesky
|
Okay: # vim, ze nemluvis cesky
|
||||||
"""
|
"""
|
||||||
if ((line_number <= 5 or line_number > len(lines) - 5) and
|
if ((line_number <= 5 or line_number > len(lines) - 5) and
|
||||||
vim_header_re.match(physical_line)):
|
vim_header_re.match(physical_line)):
|
||||||
return 0, "H106: Don't put vim configuration in source files"
|
return 0, "H106: Don't put vim configuration in source files"
|
||||||
|
|
|
@ -5,7 +5,7 @@ pbr>=1.6 # Apache-2.0
|
||||||
|
|
||||||
pep8==1.5.7 # MIT
|
pep8==1.5.7 # MIT
|
||||||
pyflakes==0.8.1 # MIT
|
pyflakes==0.8.1 # MIT
|
||||||
flake8<2.6.0,>2.4.1 # MIT
|
flake8<2.6.0,>=2.5.4 # MIT
|
||||||
mccabe==0.2.1 # MIT License
|
mccabe==0.2.1 # MIT License
|
||||||
|
|
||||||
six>=1.9.0 # MIT
|
six>=1.9.0 # MIT
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -37,7 +37,7 @@ commands = python setup.py build_sphinx
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude = .venv,.tox,dist,doc,*.egg,build
|
exclude = .venv,.tox,dist,doc,*.egg,build
|
||||||
show-source = true
|
show-source = true
|
||||||
select = H106
|
enable-extensions = H106
|
||||||
|
|
||||||
[hacking]
|
[hacking]
|
||||||
local-check = hacking.tests.test_local.check
|
local-check = hacking.tests.test_local.check
|
||||||
|
|
Loading…
Reference in New Issue