Skip to content

Commit bbb5b13

Browse files
committed
fix pre-commit hooks (don't roll my own)
1 parent e04b160 commit bbb5b13

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,23 @@ repos:
1818
- id: trailing-whitespace
1919

2020
- repo: local
21+
hooks: []
22+
23+
- repo: https://github.com/charliermarsh/ruff-pre-commit
24+
rev: v0.14.9
2125
hooks:
2226
- id: ruff
23-
name: Ruff Linter
24-
entry: uv
25-
language: system
26-
types: [python]
27-
args: ["run", "ruff", "check", "--fix"]
28-
always_run: true
27+
args: ["--fix"]
2928

29+
- repo: https://github.com/pre-commit/mirrors-mypy
30+
rev: v1.19.1
31+
hooks:
3032
- id: mypy
31-
name: MyPy Type-Checker
32-
entry: uv
33-
language: system
34-
types: [python]
35-
args: ["run", "mypy"]
36-
always_run: true
33+
args: ["public"]
34+
35+
- repo: https://github.com/pre-commit/mirrors-prettier
36+
rev: v4.0.0-alpha.8
37+
hooks:
38+
- id: prettier
39+
files: '\\.(js|ts|json|css|scss|md|astro)$'
40+
args: ["--write", "--"]

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"build": "astro build",
99
"preview": "astro preview",
1010
"astro": "astro",
11-
"format": "prettier --write .",
12-
"format:check": "prettier --check ."
11+
"format": "prettier --write",
12+
"format:check": "prettier --check"
1313
},
1414
"dependencies": {
1515
"@astrojs/check": "^0.9.6",

0 commit comments

Comments
 (0)