Skip to content
Snippets Groups Projects
Commit 47187039 authored by Timo Koch's avatar Timo Koch
Browse files

[ci][python] Linters are now installed in venv as deps of dumux

parent ed88c141
No related branches found
No related tags found
1 merge request!2938[python] Fix setup.py to find all sub-packages and add dev dependencies
Checking pipeline status
...@@ -51,13 +51,15 @@ black (python): ...@@ -51,13 +51,15 @@ black (python):
pylint-flake8 (python): pylint-flake8 (python):
stage: linting stage: linting
script: script:
# restore Python virtual env from cache (job:configure artifacts) (Dune 2.9)
- |
if [ -d "build-cmake/dune-env" ]; then
rm -r /dune/modules/dune-common/build-cmake/dune-env
mv build-cmake/dune-env /dune/modules/dune-common/build-cmake/dune-env
fi
- | - |
if [ -d build-cmake/python/dumux ] ; then if [ -d build-cmake/python/dumux ] ; then
source bin/testing/ci-setup-python-env.sh source bin/testing/ci-setup-python-env.sh
# if we are in venv (Dune 2.9) install linters
if [ -d "/dune/modules/dune-common/build-cmake/dune-env" ]; then
python -m pip install pylint flake8
fi
pylint --rcfile=.pylintrc build-cmake/python/dumux pylint --rcfile=.pylintrc build-cmake/python/dumux
pylint --rcfile=.pylintrc bin pylint --rcfile=.pylintrc bin
flake8 build-cmake/python/dumux flake8 build-cmake/python/dumux
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment