This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 577c958a78a AGENTS: Add instruction to format and check Python files
with ruff after editing (#63599)
577c958a78a is described below
commit 577c958a78a59e86bd04698a73707a91e3ec954b
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Mar 14 19:51:27 2026 +0100
AGENTS: Add instruction to format and check Python files with ruff after
editing (#63599)
* AGENTS: Add instruction to format Python files with ruff after editing
* AGENTS: Mention both format and check in ruff instruction
---
AGENTS.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/AGENTS.md b/AGENTS.md
index 32cedcee6be..f01a0112733 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -86,6 +86,7 @@ UV workspace monorepo. Key paths:
## Coding Standards
+- **Always format and check Python files with ruff immediately after writing
or editing them:** `uv run ruff format <file_path>` and `uv run ruff check
--fix <file_path>`. Do this for every Python file you create or modify, before
moving on to the next step.
- No `assert` in production code.
- `time.monotonic()` for durations, not `time.time()`.
- In `airflow-core`, functions with a `session` parameter must not call
`session.commit()`. Use keyword-only `session` parameters.