From 846b4db823efcb99f00ccdcca7b32cc4b68d8b13 Mon Sep 17 00:00:00 2001 From: Dev-iL <6509619+Dev-iL@users.noreply.github.com> Date: Sun, 1 Mar 2026 17:09:00 +0200 Subject: [PATCH] Fix prek arg (`--ref-from` -> `--from-ref`) in AGENTS.md --- AGENTS.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index c0e266aebbe01..3e2e64d0d170a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -17,10 +17,10 @@ - **Run a Python script:** `breeze run python dev/my_script.py` - **Run Airflow CLI:** `breeze run airflow dags list` - **Type-check:** `breeze run mypy path/to/code` -- **Lint with ruff only:** `prek run ruff --ref-from ` -- **Format with ruff only:** `prek run ruff-format --ref-from ` -- **Run regular (fast) static checks:** `prek run --ref-from --hook-stage pre-commit` -- **Run manual (slower) checks:** `prek run --ref-from --hook-stage manual` +- **Lint with ruff only:** `prek run ruff --from-ref ` +- **Format with ruff only:** `prek run ruff-format --from-ref ` +- **Run regular (fast) static checks:** `prek run --from-ref --hook-stage pre-commit` +- **Run manual (slower) checks:** `prek run --from-ref --hook-stage manual` `` is the branch the PR will be merged into — usually `main`, but could be `v3-1-test` when creating a PR for the 3.1 branch. @@ -111,9 +111,9 @@ code review checklist in [`.github/instructions/code-review.instructions.md`](.g API correctness, and AI-generated code signals. Fix any violations before pushing. 3. Confirm the code follows the project's coding standards and architecture boundaries described in this file. -4. Run regular (fast) static checks (`prek run --ref-from --hook-stage pre-commit`) +4. Run regular (fast) static checks (`prek run --from-ref --hook-stage pre-commit`) and fix any failures. -5. Run manual (slower) checks (`prek run --ref-from --hook-stage manual`) and fix any failures. +5. Run manual (slower) checks (`prek run --from-ref --hook-stage manual`) and fix any failures. 6. Run relevant tests (`breeze run pytest -xvs`) and confirm they pass. 7. Check for security issues — no secrets, no injection vulnerabilities, no unsafe patterns.