- 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
-
- Jun 04, 2023
-
-
Use ruff instead of flake8. Aside from being substantially faster, ruff includes a lot of flake's plug-ins built-in, some of which may be useful to enable as a follow-up. Also move the relevant configuration out of the script in .ci/ and into the project-wide settings. A side effect of this is that IDEs should detect these settings, and ignore the same rules as CI, avoiding false positives while developing locally. Reviewed-by:
Oliver Smith <ollieparanoid@postmarketos.org> Reviewed-by:
Luca Weiss <luca@z3ntu.xyz> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230529203448.18656-1-hugo@whynothugo.nl%3E
-
- Apr 04, 2023
-
-
Oliver Smith authored
Increase it as 3.6 is EOL. Related: https://en.wikipedia.org/wiki/History_of_Python#Table_of_versions Reviewed-by:
Luca Weiss <luca@z3ntu.xyz> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230326164931.2390-2-ollieparanoid@postmarketos.org%3E
-
- Feb 27, 2023
-
-
Oliver Smith authored
Verify that the pmaports dir is clean before starting the testsuite, as some tests will fail if it is not. It's annoying when this is the reason that you have to restart the testsuite run after it already spent some time, so rather check for it beforehand. Ideally the testsuite wouldn't depend on the state of pmaports, see issue 2105 for that. Reviewed-by:
Clayton Craft <clayton@craftyguy.net> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230226184731.6989-1-ollieparanoid@postmarketos.org%3E
-
- Nov 20, 2022
-
-
Oliver Smith authored
-
- Nov 02, 2022
-
-
Oliver Smith authored
This was for 'invalid escape sequence' (even though the comment has W604 instead of W605). After removing it, flake8 runs through fine. We probably fixed whatever invalid escape squence we had earlier while doing f-string related refactoring. Reviewed-by:
Luca Weiss <luca@z3ntu.xyz> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20221028074119.3309-1-ollieparanoid@postmarketos.org%3E
-
- Oct 25, 2022
-
-
Oliver Smith authored
-
Oliver Smith authored
Replace .gitlab-ci.yml with a minimal .build.yml that runs a script in the .ci dir for each task. Each of these scripts runs as root first, installs dependencies, and then drops rights to the testuser and runs the actual test. I went with this design, so we can add a 'pmbootstrap ci' command in following patches that run these in a pmbootstrap chroot (see pmaports#2169). Looking at flake8, we currently ignore W504 and W604. Would be nice to fix these instead, but let's do that in another patch. I've added a minver package to Alpine, so we don't need to install it form pip anymore. Use minver's new --lint argument to simplify the script, and as recommended by minver itself, use --no-parse-comments as speed optimization since we don't have minver specific comments. Using doas instead of sudo in build.yml would be nice, but this doesn't work out of the box. Can be changed in the future. Add a note to the pytest script, that 'pmbootstrap log' can be used to follow the log while tests are running.
-
- Jul 04, 2021
-
-
Oliver Smith authored
-
Oliver Smith authored
CI started failing with: /builds/ollieparanoid/pmbootstrap/venv/bin/python3: No module named pytest I've briefly tried to fix this with the existing scripts. However, instead of investing more time into that, do the long overdue refactoring of the scripts that involve dropping the venv logic and support for a custon gitlab-ci-runner using some python docker image as base. This configuration hasn't been used for a long time and is probably broken anyway. Refactor the logic to skip the qemu test case in gitlab CI by using pytest markers. The new script is now similar to bpo's .ci/pytest.py.
-