You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/08/10 14:36:09 UTC

[PR] Fix lint failures caused by the unpinned ruff hook [airflow-site-archive]

potiuk opened a new pull request, #46:
URL: https://github.com/apache/airflow-site-archive/pull/46

   `Basic checks` has been red on `main` since 2026-08-09 — on `7eae1e9` and on the
   merge of #44 — and every PR inherits it, including #45.
   
   The ruff hook declares `additional_dependencies: ['ruff']` with no version, so
   each run installs whatever ruff was released last. ruff 0.16 widened its default
   rule set, so code that had not changed started failing: `BLE001`, `PLW1508`,
   `EXE001`, unsorted imports and `Callable` imported from `typing`.
   
   * Pin the hook to **ruff 0.16.1**, so the rule set only moves when we move it.
     0.16.2 is out but sits inside the 7-day cooldown this repo uses.
   * Apply ruff's own fixes: sorted imports, `Callable` from `collections.abc`.
   * `GITHUB_RUN_ID` defaulted to an `int` instead of a `str` (`PLW1508`).
   * `apply_summit_banner.py` carries a shebang, so mark it executable (`EXE001`).
   * Ignore `BLE001` in `pyproject.toml` — these scripts catch broad exceptions on
     purpose, to print a readable message rather than a traceback for someone
     running them by hand.
   
   Verified with the pinned ruff: all 5 non-archive Python files pass and a second
   `--fix` pass changes nothing.
   
   Note the pin needs upkeep. #45's updater currently handles `uses:` pins and
   pre-commit `rev:`s, not `additional_dependencies` — I can extend it to bump
   `pkg==version` pins from PyPI under the same cooldown, so this one does not rot.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix lint failures caused by the unpinned ruff hook [airflow-site-archive]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #46:
URL: https://github.com/apache/airflow-site-archive/pull/46


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org