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
Commits
ae32d339
Commit
ae32d339
authored
3 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Update gitlab-ci.yml
parent
863f7110
No related branches found
No related tags found
1 merge request
!28
Update gitlab CI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+23
-4
23 additions, 4 deletions
.gitlab-ci.yml
with
23 additions
and
4 deletions
.gitlab-ci.yml
+
23
−
4
View file @
ae32d339
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 .
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