- Mar 20, 2025
-
-
Oliver Smith authored
Ruff 0.11.1 is incorrectly printing the following types of errors: pmb/helpers/logging.py:169:34: SyntaxError: Cannot use star annotation on Python 3.10 (syntax was added in Python 3.11) | 169 | def critical(msg: object, *args: str, **kwargs: Any) -> None: | ^^^ 170 | logging.critical(msg, *args, **kwargs) | But the code works fine in Python 3.10 (see pytest-python3.10 CI job). This is a known upstream bug, pin to the previous version until it is fixed. Related: https://github.com/astral-sh/ruff/issues/16874 Part-of: !2578
-
- Mar 16, 2025
-
-
Oliver Smith authored
Part-of: !2568
-
- Mar 02, 2025
-
-
Oliver Smith authored
Add the cross compiling documentation to the pmbootstrap docs. This is based on the following wiki pages, but updated to reflect new changes with cross-native2 and to make it more readable: * https://wiki.postmarketos.org/wiki/Pmbootstrap/Cross_Compiling * https://wiki.postmarketos.org/wiki/Build_internals#Cross-compile_types Co-authored-by:
Caleb Connolly <caleb@postmarketos.org>
-
- Feb 16, 2025
-
-
Oliver Smith authored
Don't try to modify a variable in the while loop, as it runs in a subshell because of the pipe. Fail on the first error instead, like we have it in .ci/shellcheck.sh. This can be optimized later on (for both scripts) if we really want to. Fix for: In ./.ci/markdown.sh line 17: markdownlint-cli "$file" || MDL_FAILED=1 ^--------^ SC2030 (info): Modification of MDL_FAILED is local (to subshell caused by pipeline). In ./.ci/markdown.sh line 20: if [ "$MDL_FAILED" = "1" ]; then ^---------^ SC2031 (info): MDL_FAILED was modified in a subshell. That change might be lost.
-
Oliver Smith authored
Move the "npm install" command to the section that runs as regular user instead of root. Instead of creating a /usr/bin/markdownlint-cli symlink, run the JS file from the path where npm installs it. Try to find a markdownlint-cli executable and use it instead if it exists, in case users run this script outside of "pmbootstrap chroot" and have the linter installed under that name.
-
Add a pre-commit hook that runs ruff.sh and tells you how to auto-fix issues, add a section to CONTRIBUTING.md to document it. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
Add a CI job to enforce markdown linting Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
- Jan 15, 2025
-
-
The Alpine version is too outdated.
-
- Jan 02, 2025
-
-
As of 139c2054, we ignore F401 in __init__.py through the pyproject.toml configuration file, so we don't need to treat it differently here in the CI script too.
-
- Dec 03, 2024
-
-
Add module that provides utilities and information related to localization. Initial implementation includes code to generate keyboard configs for locale set by user.
-
-
- Nov 29, 2024
-
-
This test includes a binary blob which we want to avoid in our codebase. It is also better suited as a unit test where it can contribute to code coverage. Revert this and use a unit test version instead. This reverts commit d19de946.
-
- Nov 24, 2024
-
-
Robert Eckelmann authored
Signed-off-by:
Robert Eckelmann <longnoserob@postmarketos.org>
-
- Nov 10, 2024
-
-
Oliver Smith authored
Make sure we don't regress in "pmbootstrap zap -a" by running it after each integration test.
-
- Nov 06, 2024
-
-
- Nov 04, 2024
-
-
Casey authored
Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
- Oct 30, 2024
-
-
Casey authored
Refactor the integration test script to support running a variety of tests, and add CI jobs for them. Additionally, move the integration tests to their own stage so we don't potentially waste a bunch of CI time running them on broken branches. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
- Oct 29, 2024
-
-
Newbyte authored
This is already the default: https://mypy.readthedocs.io/en/stable/config_file.html#confval-color_output
-
Newbyte authored
And remove --check-untyped-defs from mypy.sh script to avoid duplication.
-
- Oct 27, 2024
-
-
We now run the job in chroot, so remove the unnecessary check. If sphinx-build is missing for some reason, it will fail a bit further in the script anyways.
-
- Oct 23, 2024
-
-
Casey authored
So we don't go through the pain of pushing 3 times to get 3 different ruff failures in CI. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
-
- Oct 21, 2024
-
-
-
* Make sure all Python modules are documented by adding a bit of shell to .ci/docs.sh * Remove non-existing module references from .rst * Fix various warnings from sphinx by adjusting Python docstrings * Add class member docs to ApkindexBlock
-
- Oct 17, 2024
-
-
Luca Weiss authored
Use the new "Artifacts" directive for .ci/docs.sh and run the job in the pmbootstrap chroot to avoid needing to install sphinx dependencies on the host. Fixes #2352
-
- Oct 15, 2024
-
-
Newbyte authored
All typing errors found with --check-untyped-defs have been fixed, so let's make mypy stricter now to avoid regressing this.
-
- Oct 13, 2024
-
- Aug 21, 2024
-
-
Hugo Barrera authored
Makes errors easier to read between hints and warnings.
-
- Jul 15, 2024
-
-
Oliver Smith authored
Let's write all new documentation in markdown, and convert existing ones at some point. I think we are all much more familiar with markdown than with the rst format.
-
Oliver Smith authored
-
- Jun 30, 2024
-
-
Oliver Smith authored
-
- Jun 24, 2024
-
-
- Jun 23, 2024
-
-
Python 3.9 was required in pmb/__init__.py already, but some references still said 3.8 and 3.7. Co-Developed-By:
Oliver Smith <ollieparanoid@postmarketos.org>
-
Adjust the pytest CI to work with the new tests. It's useful to run pytest even when linters fail, so set allow_failure for the lint jobs. Signed-off-by:
Caleb Connolly <caleb@postmarketos.org>
- May 14, 2024
-
-
- Mar 17, 2024
-
-
Fix for: warning: `ruff <path>` is deprecated. Use `ruff check <path>` instead.
-
- Feb 16, 2024
-
-
- Jan 16, 2024
-
-
Oliver Smith authored
-
- Jul 13, 2023
-
- Jul 05, 2023
-
-
It has happened more than once that Python 3.9+ type annotation have slipped into the code and broken earlier Python versions. Enable the eval-annotations flag in vermin to catch that. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230625193650.528651-2-luca@z3ntu.xyz%3E
-