mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 15:50:01 -08:00
36 lines
835 B
YAML
36 lines
835 B
YAML
default_language_version:
|
|
python: python3.10
|
|
|
|
repos:
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
args: ["--profile", "black"] # Ensure compatibility with Black
|
|
|
|
- repo: https://github.com/PyCQA/autoflake
|
|
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
|
|
# Ruff version.
|
|
rev: v0.4.10
|
|
hooks:
|
|
# Run the linter.
|
|
- 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 # to ensure compatibilty
|