Skip to content

Commit cec8ec7

Browse files
author
Olivier
committed
add format check to CI (might already have there but..)
1 parent 383994c commit cec8ec7

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
5530cc393682e555299ae444e692ccba9c616b2f
2+
383994cc377f7f5c951a26cdc7baaee2c0116af4

.github/workflows/python-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
uv tool install pre-commit
3232
- name: Lint with ruff
3333
run: |
34+
uvx ruff format --diff
3435
uvx pre-commit run -a
3536
3637
build:

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ target-version = "py37"
9292
[tool.ruff.lint]
9393
select = ["E", "F", "G004", "W", "UP"]
9494
ignore = [
95+
"E111", # conflicts with ruff format, cf doc
96+
"E114", # conflicts with ruff format, cf doc
97+
"E117", # conflicts with ruff format, cf doc
98+
"E501", # conflicts with ruff format, cf doc
9599
"UP032", # Use f-string instead of `format` call
96100
"UP030", # Use implicit references for positional format fields
97101
"UP027", # Replace unpacked list comprehension with a generator expression

0 commit comments

Comments
 (0)