diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 83887f8..80e0275 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,20 +22,17 @@ repos: - id: end-of-file-fixer exclude: ^testing/Baseline|examples/.*Baseline.* -- repo: https://github.com/psf/black - rev: 23.7.0 - hooks: - - id: black - - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 + rev: v3.15.1 hooks: - id: pyupgrade args: ["--py37-plus"] -- repo: https://github.com/pycqa/flake8 - rev: 6.1.0 # 6.0.0 requires Python 3.8 +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.2.2 hooks: - - id: flake8 + - id: ruff + args: [--fix] + - id: ruff-format exclude: examples/sphinx/conf.py