Commit 74d7931
committed
Configure pyproject.toml to have custom 'pyproject' file type
(Sorry not sure what the right terminology is.)
The main reason to do this is because `ruff` can lint the `pyproject.toml` 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, pyproject]
- 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 74d7931
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
| |||
0 commit comments