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
Project 'rc/self-reg-form' was moved to 'rc/account-app'. Please update any links and bookmarks that may still have the old path.
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
Viewing commit
ae32d339
Prev
Next
Show latest version
1 file
+
23
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ae32d339
Update gitlab-ci.yml
· ae32d339
Bo-Chun Chen
authored
3 years ago
.gitlab-ci.yml
+
23
−
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
stages
:
-
lint
linting
:
black
:
tags
:
-
lint
stage
:
lint
script
:
-
black --check --diff .
flake8
:
tags
:
-
lint
stage
:
lint
script
:
-
pylint --ignore=tests.py --max-line-length=120 *.py app
-
flake8 .
Loading