-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70bcca5
commit 5220607
Showing
26 changed files
with
145 additions
and
875 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 |
---|---|---|
@@ -1,38 +1,15 @@ | ||
repos: | ||
- repo: local | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: isort | ||
name: "[Package] Import formatting" | ||
language: system | ||
entry: isort | ||
files: \.py$ | ||
|
||
- id: black | ||
name: "[Package] Code formatting" | ||
language: system | ||
entry: black | ||
files: \.py$ | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
|
||
- id: flake8 | ||
name: "[Package] Linting" | ||
- repo: local | ||
hooks: | ||
- id: ruff | ||
name: Autoformat python code | ||
language: system | ||
entry: flake8 | ||
entry: ruff | ||
args: [check] | ||
files: \.py$ | ||
|
||
- id: isort-examples | ||
name: "[Examples] Import formatting" | ||
language: system | ||
entry: nbqa isort | ||
files: examples/.+\.ipynb$ | ||
|
||
- id: black-examples | ||
name: "[Examples] Code formatting" | ||
language: system | ||
entry: nbqa black | ||
files: examples/.+\.ipynb$ | ||
|
||
- id: flake8-examples | ||
name: "[Examples] Linting" | ||
language: system | ||
entry: nbqa flake8 --ignore=E402 | ||
files: examples/.+\.ipynb$ |
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
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
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
Oops, something went wrong.