Commit 1827ebf
authored
ci: add pre-commit config with ruff linting and formatting (#130)
* ci: add pre-commit config with ruff linting and formatting
Add .pre-commit-config.yaml with:
- ruff: lint checking with auto-fix (matches CI lint.yml)
- ruff-format: code formatting
- Standard file checks: trailing whitespace, end-of-file,
TOML/YAML validity, merge conflict markers
* style: apply ruff formatting to 3 files
Auto-formatted by ruff-format:
- aw_core/util.py
- tests/test_query2.py
- tests/utils.py1 parent 9e2ad03 commit 1827ebf
File tree
4 files changed
+20
-9
lines changed- aw_core
- tests
4 files changed
+20
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
345 | | - | |
346 | | - | |
| 344 | + | |
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
| |||
518 | 516 | | |
519 | 517 | | |
520 | 518 | | |
521 | | - | |
522 | | - | |
| 519 | + | |
523 | 520 | | |
524 | 521 | | |
525 | 522 | | |
| |||
529 | 526 | | |
530 | 527 | | |
531 | 528 | | |
532 | | - | |
533 | 529 | | |
534 | 530 | | |
535 | 531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments