From 2868fe9c84814d685ee92970594d8e3bbb571b16 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 10 Sep 2023 09:04:40 -0600 Subject: [PATCH] Lint: Update Ruff config (#3433) --- .github/workflows/lint.yml | 1 + .pre-commit-config.yaml | 20 +++++++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2d29bf2f522..fc096a0cdd3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,6 +14,7 @@ concurrency: env: FORCE_COLOR: 1 + RUFF_FORMAT: github jobs: pre-commit: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 81d21c8e418..b1c1602fba6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,17 +42,6 @@ repos: - id: check-yaml name: "Check YAML" - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.287 - hooks: - - id: ruff - name: "Lint with Ruff" - args: - - '--exit-non-zero-on-fix' - - '--diff' - - '--format=github' - files: '^pep_sphinx_extensions/tests/' - - repo: https://github.com/psf/black rev: 23.7.0 hooks: @@ -63,6 +52,15 @@ repos: - '--target-version=py310' files: 'pep_sphinx_extensions/tests/.*' + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.0.287 + hooks: + - id: ruff + name: "Lint with Ruff" + args: + - '--exit-non-zero-on-fix' + files: '^pep_sphinx_extensions/tests/' + - repo: https://github.com/tox-dev/tox-ini-fmt rev: 1.3.1 hooks: