From f278f7e84bbb0edb5b50937452ed591325f38b18 Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Wed, 12 Jul 2023 16:49:04 -0700 Subject: [PATCH] Use ruff in pre-commit rather than flake8 --- .pre-commit-config.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1817ebef..39105874 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: - id: trailing-whitespace - id: check-toml - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 23.7.0 hooks: - id: black # It is recommended to specify the latest version of Python @@ -20,7 +20,8 @@ repos: hooks: - id: isort name: isort (python) - - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + - repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.0.278 hooks: - - id: flake8 + - id: ruff