diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c6fb697..e0301ae2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,19 +6,16 @@ repos: - id: commitizen stages: [commit-msg] - # Autoformat: Python code - - repo: https://github.com/psf/black - rev: 23.11.0 - hooks: - - id: black - # Lint / autoformat: Python code - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: "v0.1.6" hooks: + # Run the linter - id: ruff - args: [--exit-non-zero-on-fix] + args: [--fix, --exit-non-zero-on-fix] + # Run the formatter + - id: ruff-format # Autoformat: YAML, JSON, Markdown, etc. - repo: https://github.com/pre-commit/mirrors-prettier