Skip to content
Snippets Groups Projects
  1. Mar 20, 2025
    • Oliver Smith's avatar
      CI: ruff: use 0.11.0 (Cannot use star annotation) · aced5113
      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
      aced5113
  2. Mar 16, 2025
  3. Mar 02, 2025
  4. Feb 16, 2025
    • Oliver Smith's avatar
      ci/markdown: fix shellcheck errors (MR 2485) · 3b5e66d2
      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.
      3b5e66d2
    • Oliver Smith's avatar
      ci/markdown: don't run "npm install" as root (MR 2485) · 22d777bd
      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.
      22d777bd
    • Casey's avatar
      add pre-commit hook for ruff (MR 2485) · ebed7abe
      Casey authored and Oliver Smith's avatar Oliver Smith committed
      
      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: default avatarCaleb Connolly <caleb@postmarketos.org>
      ebed7abe
    • Casey's avatar
      CI: add markdown lint (MR 2485) · 14d9134d
      Casey authored and Oliver Smith's avatar Oliver Smith committed
      
      Add a CI job to enforce markdown linting
      
      Signed-off-by: default avatarCaleb Connolly <caleb@postmarketos.org>
      14d9134d
  5. Jan 15, 2025
  6. Jan 02, 2025
  7. Dec 03, 2024
  8. Nov 29, 2024
  9. Nov 24, 2024
  10. Nov 10, 2024
  11. Nov 06, 2024
  12. Nov 04, 2024
  13. Oct 30, 2024
  14. Oct 29, 2024
  15. Oct 27, 2024
  16. Oct 23, 2024
  17. Oct 21, 2024
  18. Oct 17, 2024
  19. Oct 15, 2024
  20. Oct 13, 2024
    • Newbyte's avatar
      CI: Install mypy from pip instead of Alpine (MR 2425) · 3bb9953f
      Newbyte authored and Newbyte's avatar Newbyte committed
      Alpine stable's mypy is currently outdated and has bugs in its
      handling of overloads. As such, just use mypy from pip so we don't have
      to worry about working aroud bugs in old mypy versions.
      
      [ci:skip-build]: already built successfully in CI
      3bb9953f
  21. Aug 21, 2024
  22. Jul 15, 2024
  23. Jun 30, 2024
  24. Jun 24, 2024
  25. Jun 23, 2024
  26. May 14, 2024
  27. Mar 17, 2024
  28. Feb 16, 2024
  29. Jan 16, 2024
  30. Jul 13, 2023
  31. Jul 05, 2023
Loading