diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000000000000000000000000000000000000..714058a623aec392730f8cea6135329dd9fbcf24 --- /dev/null +++ b/.flake8 @@ -0,0 +1,5 @@ +[flake8] +max-line-length = 100 +per-file-ignores = + # imported but unused and unable to detect undefined names + __init__.py: F401, F403 \ No newline at end of file diff --git a/.gitlab-ci/default.yml b/.gitlab-ci/default.yml index 83b9bbbe6c90d67ba61f38463579b7bbb12ee172..9f3c24373cba9fe2d3363541a229bfdb3fa30583 100644 --- a/.gitlab-ci/default.yml +++ b/.gitlab-ci/default.yml @@ -42,13 +42,14 @@ black (python): - black --check --verbose -- test/python -pylint (python): +pylint-flake8 (python): stage: linting script: - source bin/testing/ci-setup-python-env.sh - | if [ -d build-cmake/python/dumux ] ; then pylint --rcfile=.pylintrc build-cmake/python/dumux + flake8 build-cmake/python/dumux fi needs: - job: configure