-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔨 Update check and format scripts and use in pre-commit
- Loading branch information
1 parent
d9828aa
commit c4e8992
Showing
3 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,9 @@ repos: | |
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: [email protected]:astral-sh/ruff-pre-commit | ||
# https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.4.2 # Ruff version. | ||
- repo: local | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix, --extend-select=I ] | ||
# Run the formatter. | ||
- id: ruff-format | ||
- id: check | ||
name: check by ruff/mypy | ||
entry: ./scripts/check.sh | ||
language: script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters