Add jupyter
and toml
file types (#44)
## Summary
Add `jupyter` to the file types that ruff pre-commit hook runs on
## Test Plan
This is what pre-commit uses to identify ".ipynb" files. See
dc75a76b7f/identify/extensions.py (L100)
Also black does this
https://github.com/psf/black/blob/main/.pre-commit-hooks.yaml
Fixes #43
This commit is contained in:
parent
a140cebced
commit
89791c7aee
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
||||
git config user.name 'Github Actions'
|
||||
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
||||
|
||||
- run: pre-commit-mirror --language python --package-name ruff --entry 'ruff check --force-exclude' --id ruff --types-or python --types-or pyi --require-serial --description "Run 'ruff' for extremely fast Python linting" .
|
||||
- run: pre-commit-mirror --language python --package-name ruff --entry 'ruff check --force-exclude' --id ruff --types-or python --types-or pyi --types-or jupyter --types-or toml --require-serial --description "Run 'ruff' for extremely fast Python linting" .
|
||||
|
||||
- run: git push origin HEAD:refs/heads/main --tags
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user