Pablo Correa Gómez
d035338047
ci: fix remaining ruff issues and run ruff format
...
We only disable LOG015 rule, as in the simple situation of pmaports,
it doesn't matter too much if in pytest we are using the root logger
or a custom one.
Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org >
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9363 >
2026-08-12 05:39:47 +00:00
Pablo Correa Gómez
47748f6158
ci: automatic ruff checks for ruff 0.16.0
...
run ruff check --fix with ruff 0.16.0, review, and commit
Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org >
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9363 >
2026-08-12 05:39:43 +00:00
Luca Weiss
1ab8eefdd5
CI: Run dint job on all files on deviceinfo_schema.toml change
...
Similar to kconfigcheck.toml, let's run the dint job on all deviceinfo
files when the spec itself is changed. This allows to catch possible new
warnings and errors early and fix them.
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8139 >
2026-03-20 01:57:32 +00:00
Pablo Correa Gómez
ddb822187a
ci: make removed=False the default for get_changed_files
...
Eventually we probably want this everywhere.
Signed-off-by: Pablo Correa Gómez <pabloyoyoista@postmarketos.org >
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7868 >
2026-02-01 21:06:25 +00:00
Clayton Craft
f68c270d4d
ci/deviceinfo_linting: only line deviceinfo files in the devices repo
...
If devicepkg-dev changes, we don't want to lint the test deviceinfo
files there...
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org >
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7830 >
2026-01-27 12:33:06 -08:00
Clayton Craft
30e0f6d779
ci: deviceinfo_linting: add support for ci:skip-dint
...
Sometimes we just want to merge when deviceinfo is failing linting (e.g.
when moving a device pkg from a higher category to a lower one)
This should be used sparingly...
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org >
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7311 >
2025-11-10 19:54:29 +00:00
Pablo Correa Gómez
bc3fb78958
ci: lib: integrate add_upstream_git_remote into get_base_commit
...
add_upstream_git_remote was just being run at beginning of every
method using get_changed_packages or get_changed_files, to have
upstream available to use get_base_commit. So then, just move it to
get_base_commit. As a positive side-effect, since the previous commit
get_base_commit will just use the gitlab variable if available. So in
CI we will just completely avoid running these two commands!
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7078 >
2025-09-25 20:02:53 +00:00
Stefan Hansson
aa74915a68
CI: Add deviceinfo linting via dint
...
Needs https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2679
to run locally.
Tested and works locally with 'pmbootstrap ci' as well as in GitLab CI.
Closes https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/2583
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7006 >
2025-09-20 09:30:46 +00:00