Skip to content

Commit d5958d5

Browse files
Fix newline issue
Also fix priority config issues in prek
1 parent 5bf5a18 commit d5958d5

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

.agents/skills/usethis-python-code/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ else:
254254

255255
- **Nesting a shared guard inside each branch independently.** When a guard condition (such as "is git available?") applies equally to multiple branches, nesting it separately inside each branch leads to duplicated code that is hard to keep in sync. Hoist the guard to the outer level instead.
256256
- **Overlooking the inner `assert_never`.** After introducing the combined membership check, the inner if-elif still needs its own `else: assert_never(backend)` to preserve exhaustiveness checking.
257+
257258
## Marking derived properties `@final`
258259

259260
When a property derives its return value entirely from a single source of truth (e.g. `return self.meta.name`), mark it `@final` to prevent subclasses from overriding it with independent logic.

.pre-commit-config.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ repos:
4848
- id: ruff-check
4949
args: [--fix]
5050
priority: 0
51-
- repo: https://github.com/DavidAnson/markdownlint-cli2
52-
rev: v0.22.0
53-
hooks:
54-
- id: markdownlint-cli2
55-
args: ["--fix"]
56-
priority: 0
5751
- repo: https://github.com/codespell-project/codespell
5852
rev: v2.4.1
5953
hooks:
@@ -199,12 +193,18 @@ repos:
199193
always_run: true
200194
pass_filenames: false
201195
priority: 1
196+
- repo: https://github.com/DavidAnson/markdownlint-cli2
197+
rev: v0.22.0
198+
hooks:
199+
- id: markdownlint-cli2
200+
args: ["--fix"]
201+
priority: 2
202202
- repo: https://github.com/rbubley/mirrors-prettier
203203
rev: v3.8.1
204204
hooks:
205205
- id: prettier
206206
types_or: [markdown]
207-
priority: 2
207+
priority: 3
208208
- repo: local
209209
hooks:
210210
- id: deptry
@@ -213,22 +213,22 @@ repos:
213213
language: system
214214
always_run: true
215215
pass_filenames: false
216-
priority: 3
216+
priority: 4
217217
- id: import-linter
218218
name: import-linter
219219
entry: uv run --frozen --offline lint-imports
220220
language: system
221221
always_run: true
222222
pass_filenames: false
223-
priority: 3
223+
priority: 4
224224
- id: ty
225225
name: ty
226226
entry: uv run --frozen --offline ty check
227227
language: system
228228
types_or: [python, pyi]
229229
always_run: true
230230
require_serial: true
231-
priority: 3
231+
priority: 4
232232
default_stages:
233233
- pre-commit
234234
- pre-push

0 commit comments

Comments
 (0)