summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml28
1 files changed, 9 insertions, 19 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4d0d922..84d8223 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,11 +6,15 @@ exclude: >
deluge/tests/data/.*svg|
)$
repos:
- - repo: https://github.com/psf/black
- rev: 23.1.0
+ - repo: https://github.com/astral-sh/ruff-pre-commit
+ # Ruff version.
+ rev: v0.6.4
hooks:
- - id: black
- name: Fmt Black
+ - id: ruff
+ name: Chk Ruff
+ args: [--fix]
+ - id: ruff-format
+ name: Fmt Ruff
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
@@ -18,23 +22,9 @@ repos:
name: Fmt Prettier
# Workaround to list modified files only.
args: [--list-different]
- - repo: https://github.com/pycqa/isort
- rev: 5.12.0
- hooks:
- - id: isort
- name: Fmt isort
- - repo: https://github.com/pycqa/flake8
- rev: 6.0.0
- hooks:
- - id: flake8
- name: Chk Flake8
- additional_dependencies:
- - pep8-naming==0.12.1
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- - id: double-quote-string-fixer
- name: Fix Double-quotes
- id: end-of-file-fixer
name: Fix End-of-files
exclude_types: [javascript, css]
@@ -47,5 +37,5 @@ repos:
rev: v3.3.1
hooks:
- id: pyupgrade
- args: [--py36-plus]
+ args: [--py37-plus]
stages: [manual]