diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e28381a..2fbbd49 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,16 +9,14 @@ repos: - id: end-of-file-fixer exclude: ^\.config/fcitx5/ - id: trailing-whitespace -- repo: https://github.com/psf/black - rev: 24.10.0 +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.9.4 hooks: - - id: black -- repo: https://github.com/pycqa/isort - rev: 5.13.2 - hooks: - - id: isort + - id: ruff + args: [ --fix ] + - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.1 hooks: - id: mypy - repo: https://github.com/syntaqx/git-hooks @@ -32,6 +30,6 @@ repos: hooks: - id: detect-secrets - repo: https://github.com/google/keep-sorted - rev: v0.5.1 + rev: v0.6.0 hooks: - id: keep-sorted