Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci-includes
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
2
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Bilke
ci-includes
Commits
9ce9bcdc
Verified
Commit
9ce9bcdc
authored
1 year ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
Added py_format job.
parent
a66062d8
No related branches found
No related tags found
No related merge requests found
Pipeline
#187497
canceled with stage
in 35 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
python/format.yml
+9
-0
9 additions, 0 deletions
python/format.yml
test/python-template
+1
-1
1 addition, 1 deletion
test/python-template
test/python.yml
+17
-0
17 additions, 0 deletions
test/python.yml
with
27 additions
and
1 deletion
python/format.yml
0 → 100644
+
9
−
0
View file @
9ce9bcdc
py_format
:
extends
:
-
.python-default
script
:
-
black --diff --check .
# format is not required for different py versions
parallel
:
matrix
:
-
PYTHON_VERSIONS
:
"
3.10"
This diff is collapsed.
Click to expand it.
python-template
@
76e5c375
Compare
b11729bc
...
76e5c375
Subproject commit
b11729bcc1f51e550261b258e236e7bf288e05e2
Subproject commit
76e5c37562775c888c7e3e0608c83f42e82985cd
This diff is collapsed.
Click to expand it.
test/python.yml
+
17
−
0
View file @
9ce9bcdc
...
...
@@ -42,3 +42,20 @@ py_lint:
PYTHON_VERSIONS
:
!reference
[
.python-versions
,
versions
]
allow_failure
:
exit_codes
:
1
py_format
:
before_script
:
-
!reference
[
.ci-setup
,
script
]
-
cd $PROJECT_ROOT
-
!reference
[
.python-default
,
before_script
]
-
|
if [ $EXIT_CODE -eq 1 ]; then
echo "import os" >> tests/test_base.py
fi
parallel
:
matrix
:
-
PROJECT_ROOT
:
"
test/python-template"
EXIT_CODE
:
0
PYTHON_VERSIONS
:
"
3.10"
allow_failure
:
exit_codes
:
1
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