-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Ruff tools, update pre-commit (#558)
* Switch to Ruff tools, update pre-commit * Update .pre-commit-config.yaml --------- Co-authored-by: Marcelo Duarte Trevisani <marcelotrevisani@users.noreply.github.com>
- Loading branch information
1 parent
9d5d5e2
commit 2c1caa2
Showing
16 changed files
with
118 additions
and
151 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,41 +1,31 @@ | ||
exclude: docs | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 24.8.0 | ||
hooks: | ||
- id: black | ||
args: [--safe, --quiet] | ||
- repo: https://github.com/asottile/blacken-docs | ||
- repo: https://github.com/adamchainz/blacken-docs | ||
rev: 1.18.0 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: [black==22.6.0] | ||
additional_dependencies: [black==22.12.0] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: fix-encoding-pragma | ||
args: [--remove] | ||
- id: check-yaml | ||
exclude: tests | ||
- id: sort-simple-yaml | ||
files: grayskull/pypi/config.yaml | ||
files: config.yaml | ||
- id: check-toml | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: pretty-format-json | ||
args: [--autofix] | ||
- id: debug-statements | ||
language_version: python3 | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
exclude: tests/data | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 7.1.1 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.4 | ||
hooks: | ||
- id: flake8 | ||
exclude: tests/data | ||
language_version: python3 | ||
# Run the linter | ||
- id: ruff | ||
args: [ --fix, --exit-non-zero-on-fix ] | ||
# Run the formatter | ||
- id: ruff-format |
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.