Skip to content

Commit e15d600

Browse files
authored
Enhance linting section with Ruff usage instructions
Added detailed instructions for using Ruff for linting.
1 parent 3f146f9 commit e15d600

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

AGENTS.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,16 @@ Documentation can be built as described in `.github/workflows/docs-build-pr.yml`
8484

8585
## Linting
8686

87-
Before accepting new PRs, we use the latest version of Ruff to lint the code, as in `.github/workflows/contrib.yml`
87+
Before accepting new PRs, we use the latest version of Ruff to lint the code, as in `.github/workflows/contrib.yml`:
88+
89+
- Check correctness:
90+
```
91+
pipx run ruff check --fix <files>
92+
```
93+
- Reformat:
94+
```
95+
pipx run ruff format <files>
96+
```
8897

8998
## Codex instructions
9099

0 commit comments

Comments
 (0)