Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci-cd-exercise
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Cedric Verstege
ci-cd-exercise
Commits
b7f7f8bd
Commit
b7f7f8bd
authored
2 weeks ago
by
Cedric Verstege
Browse files
Options
Downloads
Patches
Plain Diff
Add
8
parent
db3612ee
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#4402
failed
2 weeks ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
case-1-lint/linting_job.yml
+35
-0
35 additions, 0 deletions
case-1-lint/linting_job.yml
with
35 additions
and
0 deletions
case-1-lint/linting_job.yml
0 → 100644
+
35
−
0
View file @
b7f7f8bd
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image
:
python:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/topics/caching/
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache
:
paths
:
-
.cache/pip
-
venv/
before_script
:
-
python --version
# For debugging
-
python3 -m venv venv
-
source venv/bin/activate
❄️8
:
stage
:
code_quality
script
:
-
pip install -U flake8
-
flake8 ./case-1-lint/
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