From 750634776b5ba84b5d2f225c375f66b2197e96f6 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Fri, 30 Jul 2021 20:32:13 +0200 Subject: [PATCH] [python][ci] Run flake8 on dumux python module and test in ci --- .flake8 | 5 +++++ .gitlab-ci/default.yml | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000000..714058a623 --- /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 83b9bbbe6c..9f3c24373c 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 -- GitLab