diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1db71f9c..edcc711d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -# Pre-commit hooks configuration file - https://pre-commit.com/ +# Pre-commit hooks - https://pre-commit.com/ repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -17,8 +17,9 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - - repo: https://github.com/psf/black - rev: 23.3.0 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.11 hooks: - - id: black - language_version: python3 + - id: ruff + args: [ --fix ] + - id: ruff-format