From 594e73d8caae733ab76896a42e73bb1d7bfc3a52 Mon Sep 17 00:00:00 2001 From: Olivier Date: Sat, 26 Oct 2024 12:06:06 +0200 Subject: [PATCH] add format check to CI (might already have there but..) --- .git-blame-ignore-revs | 1 + .github/workflows/python-package.yml | 1 + pyproject.toml | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 6e4a54d09..f5ffbd08c 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1 +1,2 @@ 5530cc393682e555299ae444e692ccba9c616b2f +383994cc377f7f5c951a26cdc7baaee2c0116af4 diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 81a9b321b..2dacec530 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -31,6 +31,7 @@ jobs: uv tool install pre-commit - name: Lint with ruff run: | + uvx ruff format --diff uvx pre-commit run -a build: diff --git a/pyproject.toml b/pyproject.toml index 46ee4040f..9b0133b7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,6 +92,10 @@ target-version = "py37" [tool.ruff.lint] select = ["E", "F", "G004", "W", "UP"] ignore = [ + "E111", # conflicts with ruff format, cf doc + "E114", # conflicts with ruff format, cf doc + "E117", # conflicts with ruff format, cf doc + "E501", # conflicts with ruff format, cf doc "UP032", # Use f-string instead of `format` call "UP030", # Use implicit references for positional format fields "UP027", # Replace unpacked list comprehension with a generator expression