Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
47187039
Commit
47187039
authored
3 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci/default.yml
+6
-4
6 additions, 4 deletions
.gitlab-ci/default.yml
with
6 additions
and
4 deletions
.gitlab-ci/default.yml
+
6
−
4
View file @
47187039
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment