Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
account-app
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
rc
account-app
Merge requests
!28
Update gitlab CI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update gitlab CI
louistw/account-app:update-ci
into
master
Overview
0
Commits
3
Pipelines
7
Changes
1
Merged
Bo-Chun Chen
requested to merge
louistw/account-app:update-ci
into
master
3 years ago
Overview
0
Commits
3
Pipelines
7
Changes
1
Expand
Add
flake8
and
black
depends on
!35 (merged)
Edited
3 years ago
by
Bo-Chun Chen
👍
0
👎
0
Merge request reports
Compare
master
version 7
7c5d62bf
3 years ago
version 6
a77bbcf5
3 years ago
version 5
b06ed4a3
3 years ago
version 4
c4e8f6c7
3 years ago
version 3
7273a3cb
3 years ago
version 2
181e4969
3 years ago
version 1
cfb31482
3 years ago
master (base)
and
latest version
latest version
7c5d62bf
3 commits,
3 years ago
version 7
7c5d62bf
8 commits,
3 years ago
version 6
a77bbcf5
7 commits,
3 years ago
version 5
b06ed4a3
7 commits,
3 years ago
version 4
c4e8f6c7
7 commits,
3 years ago
version 3
7273a3cb
6 commits,
3 years ago
version 2
181e4969
5 commits,
3 years ago
version 1
cfb31482
4 commits,
3 years ago
1 file
+
36
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
36
−
4
Options
image
:
"
python:3.7"
image
:
"
python:3.6"
# 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"
cache
:
paths
:
-
.cache/pip
-
venv/
before_script
:
-
python --version
-
pip install pylint
-
python3 -m venv venv
-
source venv/bin/activate
-
pip install black==22.3.0 flake8==4.0.1 pylint==2.13.8
stages
:
-
lint
linting
:
black
:
tags
:
-
lint
stage
:
lint
script
:
-
black --check --diff .
only
:
-
merge_requests
flake8
:
tags
:
-
lint
stage
:
lint
script
:
-
flake8 .
only
:
-
merge_requests
pylint
:
tags
:
-
lint
stage
:
lint
script
:
-
pylint --ignore=tests.py --max-line-length=120 *.py app
-
pylint app *.py
only
:
-
merge_requests
Loading