From 4cdc9898f7a4e649db26a37526441f1ed08758ee Mon Sep 17 00:00:00 2001 From: Kevin Phoenix Date: Wed, 12 Jul 2023 20:04:53 -0400 Subject: [PATCH] Enable ruff auto-fixing in pre-commit (#330) --- .pre-commit-config.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 55e173d1..5ad92aa7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,6 +65,12 @@ repos: - id: pyupgrade args: [--py38-plus] +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.0.277 + hooks: + - id: ruff + args: [--fix, --exit-non-zero-on-fix] + # Last modifier: Coding Standard - repo: https://github.com/psf/black rev: 23.3.0 @@ -92,8 +98,3 @@ repos: - id: debug-statements - id: check-builtin-literals - id: check-docstring-first - -- repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.277 - hooks: - - id: ruff