From 5ac5fe779ecec2eaa85135be30fdccc3de3c455c Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Fri, 1 Mar 2024 16:28:14 -0700 Subject: [PATCH] Standardize on ruff for python formatting/linting via pre-commits --- .pre-commit-config.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 83887f8..4b98e6c 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.3.0 hooks: - - id: flake8 + - id: ruff + args: [--fix] + - id: ruff-format exclude: examples/sphinx/conf.py