Commit a5237c4
committed
Redefine uv.lock have custom 'uvlock' file type
(Sorry not sure what the right terminology is.)
The main reason to do this is because `ruff` can lint the `uv.lock` file and it uses `types_or` to match files. If `ruff` were to match against 'toml' in its `types_or` it would match too many files. So the idea is to merge this then update ruff's hook definition to
```diff
- id: ruff-check
name: ruff check
description: "Run 'ruff check' for extremely fast Python linting"
entry: ruff check --force-exclude
language: python
+ types_or: [python, pyi, jupyter, uvlock]
- types_or: [python, pyi, jupyter]
```
I got this idea by looking at how jenkinfiles is defined; although it's a groovy file, it has a custom jenkinsfile-specific file type in this extensions file.1 parent bc5fa61 commit a5237c4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| |||
0 commit comments