mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-05 20:40:09 -08:00
chore(pre-commit): update pre-commit config to use only Ruff
This commit is contained in:
@@ -1,33 +1,10 @@
|
|||||||
default_language_version:
|
|
||||||
python: python3.12
|
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pycqa/isort
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: 5.12.0
|
# Ruff version.
|
||||||
|
rev: v0.14.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
# Run the linter.
|
||||||
name: isort (python)
|
- id: ruff-check
|
||||||
args: ["--profile", "black"]
|
args: [--fix]
|
||||||
|
# Run the formatter.
|
||||||
- repo: https://github.com/PyCQA/autoflake
|
- id: ruff-format
|
||||||
rev: v2.2.1
|
|
||||||
hooks:
|
|
||||||
- id: autoflake
|
|
||||||
args:
|
|
||||||
[
|
|
||||||
"--in-place",
|
|
||||||
"--remove-unused-variables",
|
|
||||||
"--remove-all-unused-imports",
|
|
||||||
]
|
|
||||||
# - repo: https://github.com/astral-sh/ruff-pre-commit
|
|
||||||
# rev: v0.4.10
|
|
||||||
# hooks:
|
|
||||||
# - id: ruff
|
|
||||||
# args: [--fix]
|
|
||||||
|
|
||||||
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
||||||
rev: 24.4.2
|
|
||||||
hooks:
|
|
||||||
- id: black
|
|
||||||
name: black
|
|
||||||
#language_version: python3.10
|
|
||||||
|
|||||||
Reference in New Issue
Block a user