From 7df267efa4986f4ea7c40f6e5177e30f95a1d0cd Mon Sep 17 00:00:00 2001 From: Patrick Kidger <33688385+patrick-kidger@users.noreply.github.com> Date: Sun, 10 Dec 2023 15:27:42 -0800 Subject: [PATCH] Upgrade to ruff-format --- .pre-commit-config.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 97ea720..a301d3d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,12 +18,11 @@ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. repos: - - repo: https://github.com/ambv/black - rev: 23.9.1 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.7 hooks: - - id: black - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.0.291' - hooks: - - id: ruff - args: ["--fix"] + - id: ruff # linter + types_or: [ python, pyi, jupyter ] + args: [ --fix ] + - id: ruff-format # formatter + types_or: [ python, pyi, jupyter ]