Skip to content

Commit

Permalink
python: use pycodestyle instead of pep8
Browse files Browse the repository at this point in the history
Their warning:

pep8 has been renamed to pycodestyle (GitHub issue axoflow#466)
Use of the pep8 tool will be removed in a future release.
Please install and use `pycodestyle` instead.

$ pip install pycodestyle
$ pycodestyle ...

Signed-off-by: Attila Szakacs <[email protected]>
  • Loading branch information
alltilla committed May 4, 2023
1 parent 056f7e6 commit 407282e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r requirements.txt

pep8
pycodestyle
isort
pylint
astroid
Expand Down
6 changes: 3 additions & 3 deletions modules/python-modules/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ pymodules-clean:
pymodules-unit: python-venv
$(PYTHON_VENV) -m pytest --showlocals --verbosity=3 $(PYMODULES_SRCDIR) -W ignore::UserWarning

pymodules-checks: pymodules-unit pymodules-pep8 pymodules-pylint
pymodules-checks: pymodules-unit pymodules-pycodestyle pymodules-pylint

pymodules-pep8: python-venv
$(PYTHON_VENV) -m pep8 --ignore=E501 $(PYMODULES_SRCDIR)/$(PYMODULES_ROOT_MODULE)
pymodules-pycodestyle: python-venv
$(PYTHON_VENV) -m pycodestyle --ignore=E501 $(PYMODULES_SRCDIR)/$(PYMODULES_ROOT_MODULE)

pymodules-pylint: python-venv
$(PYTHON_VENV) -m pylint -r n --rcfile=$(PYMODULES_SRCDIR)/pylintrc $(PYMODULES_SRCDIR)/$(PYMODULES_ROOT_MODULE)
Expand Down

0 comments on commit 407282e

Please sign in to comment.