Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
network
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
9
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
funkwhale
network
Commits
fbd5ed8c
Verified
Commit
fbd5ed8c
authored
2 years ago
by
jooola
Browse files
Options
Downloads
Patches
Plain Diff
ci: add pre-commit job
parent
91a7f42b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!56
chore: add pre commit
Pipeline
#26495
passed with stages
in 9 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+16
-0
16 additions, 0 deletions
.gitlab-ci.yml
with
16 additions
and
0 deletions
.gitlab-ci.yml
+
16
−
0
View file @
fbd5ed8c
stages
:
-
lint
-
test
-
build
...
...
@@ -9,6 +10,21 @@ variables:
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
pre-commit
:
stage
:
lint
image
:
python:3.11
variables
:
PIP_CACHE_DIR
:
$CI_PROJECT_DIR/.cache/pip
PRE_COMMIT_HOME
:
$CI_PROJECT_DIR/.cache/pre-commit
cache
:
paths
:
-
$PIP_CACHE_DIR
-
$PRE_COMMIT_HOME
before_script
:
-
pip3 install pre-commit
script
:
-
pre-commit run --verbose --all --color=always --show-diff-on-failure
tests
:
stage
:
test
services
:
...
...
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