Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
postmarketOS
pmbootstrap
Commits
2d90b558
Verified
Commit
2d90b558
authored
1 year ago
by
Oliver Smith
Committed by
Newbyte
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
CI: mypy: make compatible with "pmbootstrap ci" (MR 2258)
parent
c18bff1c
No related branches found
No related tags found
1 merge request
!2258
Add Mypy CI and fix instances where it fails
Pipeline
#189857
passed
1 year ago
Stage: lint
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/mypy.sh
+13
-0
13 additions, 0 deletions
.ci/mypy.sh
.gitlab-ci.yml
+1
-3
1 addition, 3 deletions
.gitlab-ci.yml
with
14 additions
and
3 deletions
.ci/mypy.sh
0 → 100755
+
13
−
0
View file @
2d90b558
#!/bin/sh -e
# Description: static type checking for python scripts
# https://postmarketos.org/pmb-ci
if
[
"
$(
id
-u
)
"
=
0
]
;
then
set
-x
apk
-q
add py3-argcomplete py3-mypy
exec
su
"
${
TESTUSER
:-
build
}
"
-c
"sh -e
$0
"
fi
set
-x
mypy pmbootstrap.py
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
1
−
3
View file @
2d90b558
...
...
@@ -59,7 +59,5 @@ mr-settings:
mypy
:
stage
:
lint
before_script
:
-
apk add py3-argcomplete py3-mypy
script
:
-
mypy pmbootstrap.py
-
"
.ci/mypy.sh"
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