forked from apache/iceberg
-
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.
Python: Replace
isort
, pylint
, prettier
, pyupgrade
& flake8
…
… with `ruff` (apache#8408)
- Loading branch information
1 parent
f2ce4ef
commit 4f22dd8
Showing
9 changed files
with
74 additions
and
52 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 |
---|---|---|
|
@@ -28,52 +28,28 @@ repos: | |
- id: debug-statements | ||
- id: check-yaml | ||
- id: check-ast | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version (Used for linting) | ||
rev: v0.0.286 | ||
hooks: | ||
- id: ruff | ||
args: [ --fix, --exit-non-zero-on-fix ] | ||
- repo: https://github.com/ambv/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v5.10.1 | ||
hooks: | ||
- id: isort | ||
args: [--settings-path=python/pyproject.toml] | ||
args: [--skip-string-normalization] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.3.0 | ||
hooks: | ||
- id: mypy | ||
args: | ||
[--install-types, --non-interactive, --config=python/pyproject.toml] | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.0-alpha.9-for-vscode | ||
hooks: | ||
- id: prettier | ||
args: [--plugin=prettier-plugin-toml] | ||
additional_dependencies: | ||
- [email protected] | ||
- [email protected] | ||
- repo: https://github.com/hadialqattan/pycln | ||
rev: v2.1.5 | ||
hooks: | ||
- id: pycln | ||
args: [--config=python/pyproject.toml] | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.4.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus, --keep-runtime-typing] | ||
- repo: https://github.com/pycqa/pylint | ||
rev: v3.0.0a6 | ||
hooks: | ||
- id: pylint | ||
args: [--rcfile=python/pylintrc] | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: "6.0.0" | ||
hooks: | ||
- id: flake8 | ||
args: ["--ignore=E501,W503,E203,B024,B028"] | ||
additional_dependencies: | ||
- flake8-bugbear==23.3.23 | ||
- flake8-comprehensions==3.12.0 | ||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.16 | ||
hooks: | ||
|
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