-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ruff): use ruff instead isort, black and pyupgrade (#78)
* chore(ruff): update doc * chore(ruff): add ruff formater, removing isort, pyupgrade and black * chore(ruff): parametrizing ruff config
- Loading branch information
1 parent
442844e
commit 630c787
Showing
26 changed files
with
139 additions
and
223 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,47 +1,37 @@ | ||
default_language_version: | ||
python: python3.10 | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-toml | ||
- id: trailing-whitespace | ||
- id: check-json | ||
- id: check-yaml | ||
args: | ||
- --unsafe | ||
- id: check-toml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-added-large-files | ||
- repo: local | ||
hooks: | ||
|
||
- id: ruff | ||
name: ruff | ||
entry: ruff check meiga tests --fix | ||
- id: commitizen | ||
name: My commitizen check | ||
entry: cz | ||
args: ['check', '--commit-msg-file', '.git/COMMIT_EDITMSG'] | ||
pass_filenames: false | ||
language: system | ||
types: [ python ] | ||
stages: [commit-msg] | ||
require_serial: true | ||
fail_fast: true | ||
|
||
- id: isort | ||
name: isort | ||
entry: isort meiga tests | ||
- id: ruff | ||
name: ruff | ||
entry: ruff check --fix meiga tests | ||
language: system | ||
types: [ python ] | ||
require_serial: true | ||
fail_fast: true | ||
|
||
- id: black | ||
name: black | ||
entry: black meiga tests | ||
- id: ruff-format | ||
name: ruff-format | ||
entry: ruff format meiga tests | ||
language: system | ||
types: [ python ] | ||
require_serial: true | ||
fail_fast: true | ||
|
||
- id: pyupgrade | ||
name: Pyupgrade | ||
entry: pyupgrade --py37-plus | ||
types: [ python ] | ||
language: system | ||
exclude: ^docs/.*$ | ||
fail_fast: true |
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
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
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.