Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
85d759e
1
Parent(s): b30e5c9
Update pre-commit
Browse files- .pre-commit-config.yaml +12 -2
.pre-commit-config.yaml
CHANGED
|
@@ -13,8 +13,18 @@ repos:
|
|
| 13 |
types_or: [yaml, json5]
|
| 14 |
|
| 15 |
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 16 |
-
|
|
|
|
| 17 |
hooks:
|
| 18 |
-
|
| 19 |
- id: ruff
|
| 20 |
args: [--fix, --exit-non-zero-on-fix]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
types_or: [yaml, json5]
|
| 14 |
|
| 15 |
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 16 |
+
# Ruff version.
|
| 17 |
+
rev: v0.11.4
|
| 18 |
hooks:
|
| 19 |
+
# Run the linter.
|
| 20 |
- id: ruff
|
| 21 |
args: [--fix, --exit-non-zero-on-fix]
|
| 22 |
+
# Run the formatter.
|
| 23 |
+
- id: ruff-format
|
| 24 |
+
|
| 25 |
+
- repo: https://github.com/northisup/pyright-pretty
|
| 26 |
+
rev: v0.1.0
|
| 27 |
+
hooks:
|
| 28 |
+
- id: pyright-pretty
|
| 29 |
+
files: ^src/|^tests/
|
| 30 |
+
exclude: ^examples/
|