mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-12 06:56:45 +03:00
Update .pre-commit-config.yaml
Replace isort, black and pycln with ruff
This commit is contained in:
@@ -18,22 +18,14 @@ repos:
|
|||||||
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline
|
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline
|
||||||
- id: mixed-line-ending # replaces or checks mixed line ending
|
- id: mixed-line-ending # replaces or checks mixed line ending
|
||||||
- id: trailing-whitespace # checks for trailing whitespace
|
- id: trailing-whitespace # checks for trailing whitespace
|
||||||
- repo: https://github.com/pycqa/isort
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: 5.13.2
|
rev: v0.8.6
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: ruff
|
||||||
name: isort (python)
|
args: [ --fix, --exit-non-zero-on-fix ]
|
||||||
language_version: '3.11'
|
- id: ruff-format
|
||||||
args: ["--profile", "black", "--filter-files"]
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||||
- repo: https://github.com/psf/black
|
rev: v0.43.0
|
||||||
rev: 24.10.0
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: markdownlint
|
||||||
language_version: '3.11'
|
args: ["--fix"]
|
||||||
args: ["--preview"]
|
|
||||||
- repo: https://github.com/hadialqattan/pycln # removes unused imports
|
|
||||||
rev: v2.4.0
|
|
||||||
hooks:
|
|
||||||
- id: pycln
|
|
||||||
language_version: "3.11"
|
|
||||||
args: [--all]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user