diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4141333..32a44b4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,22 +18,14 @@ repos: - 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: trailing-whitespace # checks for trailing whitespace - - repo: https://github.com/pycqa/isort - rev: 5.13.2 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.8.6 + hooks: + - id: ruff + args: [ --fix, --exit-non-zero-on-fix ] + - id: ruff-format + - repo: https://github.com/igorshubovych/markdownlint-cli + rev: v0.43.0 hooks: - - id: isort - name: isort (python) - language_version: '3.11' - args: ["--profile", "black", "--filter-files"] - - repo: https://github.com/psf/black - rev: 24.10.0 - hooks: - - id: black - language_version: '3.11' - args: ["--preview"] - - repo: https://github.com/hadialqattan/pycln # removes unused imports - rev: v2.4.0 - hooks: - - id: pycln - language_version: "3.11" - args: [--all] + - id: markdownlint + args: ["--fix"]