Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mrhlpr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Anjan Momi
mrhlpr
Commits
74dba021
Commit
74dba021
authored
5 months ago
by
Luca Weiss
Browse files
Options
Downloads
Patches
Plain Diff
Update docstrings to address Sphinx warnings
parent
5fc176ac
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
mrhlpr/git.py
+1
-2
1 addition, 2 deletions
mrhlpr/git.py
mrhlpr/mr.py
+6
-6
6 additions, 6 deletions
mrhlpr/mr.py
mrhlpr/mrdb.py
+3
-1
3 additions, 1 deletion
mrhlpr/mrdb.py
mrhlpr/runner.py
+1
-0
1 addition, 0 deletions
mrhlpr/runner.py
mrtest/select_package.py
+1
-0
1 addition, 0 deletions
mrtest/select_package.py
with
12 additions
and
9 deletions
mrhlpr/git.py
+
1
−
2
View file @
74dba021
...
...
@@ -33,8 +33,7 @@ def run(
def
get_remote_url
(
remote
:
str
=
"
origin
"
)
->
Optional
[
str
]:
"""
:returns: the remote URL as string, e.g.
"
https://gitlab.postmarketos.org/postmarketOS/pmaports.git
"
"""
"""
:returns: the remote URL as string, e.g.
"
https://gitlab.postmarketos.org/postmarketOS/pmaports.git
"
"""
ret
=
run
([
"
remote
"
,
"
get-url
"
,
remote
],
check
=
False
)
return
ret
...
...
This diff is collapsed.
Click to expand it.
mrhlpr/mr.py
+
6
−
6
View file @
74dba021
...
...
@@ -375,12 +375,12 @@ def commits_follow_format(commits: list[str]) -> tuple[Optional[bool], list[Any]
"""
Check if the commit subjects follow the correct naming format.
:param commits: return value from git.commits_on_top_of()
:returns:
(result, subject_err)
result: True if the commits are formatted correctly, False if
something is obviously wrong and None if it is
something between
subject_err: string with commit hash and explanation of wha
t
is wrong with the subject
"""
:returns:
-
result: True if the commits are formatted correctly, False if
something is obviously wrong and None if it is
something between
- subject_err: string with commit hash and explanation of what
is wrong with the subjec
t
"""
subjects
=
{}
for
commit
in
commits
:
ret
=
git
.
run
([
"
show
"
,
"
-s
"
,
"
--format=%s
"
,
commit
])
...
...
This diff is collapsed.
Click to expand it.
mrhlpr/mrdb.py
+
3
−
1
View file @
74dba021
...
...
@@ -10,10 +10,12 @@ from typing import Optional
def
load
()
->
dict
[
str
,
dict
[
str
,
dict
[
str
,
int
]]]:
"""
:returns: dict of the loaded lookup table, looks like:
{
"
gitlab.postmarketos.org
"
:
{
"
postmarketOS/pmaports
"
:
{
"
sailfish
"
: 66,
"
grate-driver
"
: 67}}}
"""
"
grate-driver
"
: 67}}}
"""
home_path
=
os
.
getenv
(
"
HOME
"
)
if
not
home_path
:
return
{}
...
...
This diff is collapsed.
Click to expand it.
mrhlpr/runner.py
+
1
−
0
View file @
74dba021
...
...
@@ -68,6 +68,7 @@ def verify(runner: Runner) -> None:
"""
Verify that a runner ist trusted, or ask the user if they want to trust
it. Exit if the user does not trust it.
:param runner: as returned from the gitlab jobs api:
{
"
id
"
: 12270837,
"
description
"
:
"
4-blue.shared.runners-manager.gitlab.postmarketos.org/default
"
,
"
ip_address
"
:
"
34.74.35.215
"
,
...
...
This diff is collapsed.
Click to expand it.
mrtest/select_package.py
+
1
−
0
View file @
74dba021
...
...
@@ -132,6 +132,7 @@ def toggle_packages(action, apks: list[str], ret: list[str]) -> list[str]:
def
ask
(
zip_path
:
str
)
->
list
[
str
]:
"""
Ask the user which packages shall be installed or upgraded.
:param zip_path: downloaded artifacts zip containing the apks
:returns: paths inside the zip file of the packages that the user wants
to install, e.g. [
"
packages/edge/aarch64/postmarketos-ui-phosh-18-r0.apk
"
]
"""
...
...
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