gitlabci: use flake8 instead of comparative pep8

parent f5d940f1
...@@ -17,12 +17,10 @@ test:augeas: ...@@ -17,12 +17,10 @@ test:augeas:
script: script:
- augparse pydnstest/deckard.aug - augparse pydnstest/deckard.aug
test:pep8: test:flake8:
<<: *test <<: *test
script: script:
- cp ci/common.sh /tmp - python3 -m flake8 --max-line-length=100 . && echo "OK, no flake8 errors detected"
- cp ci/compare-pep8.sh /tmp
- /tmp/compare-pep8.sh
test:pylint: test:pylint:
<<: *test <<: *test
......
#!/bin/bash
set -o nounset -o xtrace -o errexit
source "$(dirname "$0")/common.sh"
git diff "${MERGEBASE}..${HEAD}" | ${PYTHON} -m pep8 --ignore=W503 --diff --show-source --max-line-length=100 && echo "OK, no PEP8 errors detected"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment