Switch pep8 for pycodestyle

- Make sure the pycodestyle installed with mycroft-core is used
- Ignore binary operator warning
pull/2125/head
Åke Forslund 2019-05-15 11:46:25 +02:00
parent 1b69c5ab4a
commit bcd4084685
2 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import tempfile
# don't fill in both of these
select_codes = []
ignore_codes = ["E121", "E122", "E123", "E124", "E125", "E126", "E127", "E128",
"E129", "E501", "E722", "E226"]
"E129", "E501", "E722", "E226", "W504"]
# Add things like "--max-line-length=120" below
overrides = []
@ -40,7 +40,10 @@ def main():
with open(filename, 'w') as f:
system('git', 'show', ':' + name, stdout=f)
args = ['pep8']
checker_path = os.path.join(os.path.dirname(__file__),
'..', '..', '.venv', 'bin', 'pycodestyle')
checker_path = os.path.abspath(checker_path)
args = [checker_path]
if select_codes and ignore_codes:
print(u'Error: select and ignore codes are mutually exclusive')
sys.exit(1)

View File

@ -1,4 +1,4 @@
pep8==1.7.0
pycodestyle===2.5.0
coveralls==1.5.0
pytest==3.5.0
pytest-cov==2.5.1