Commit 54895d21 authored by Olivier's avatar Olivier Committed by oroulet

add format check to CI (might already have there but..)

parent f214396c
5530cc393682e555299ae444e692ccba9c616b2f 5530cc393682e555299ae444e692ccba9c616b2f
383994cc377f7f5c951a26cdc7baaee2c0116af4
...@@ -31,6 +31,7 @@ jobs: ...@@ -31,6 +31,7 @@ jobs:
uv tool install pre-commit uv tool install pre-commit
- name: Lint with ruff - name: Lint with ruff
run: | run: |
uvx ruff format --diff
uvx pre-commit run -a uvx pre-commit run -a
build: build:
......
...@@ -92,6 +92,10 @@ target-version = "py37" ...@@ -92,6 +92,10 @@ target-version = "py37"
[tool.ruff.lint] [tool.ruff.lint]
select = ["E", "F", "G004", "W", "UP"] select = ["E", "F", "G004", "W", "UP"]
ignore = [ 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 "UP032", # Use f-string instead of `format` call
"UP030", # Use implicit references for positional format fields "UP030", # Use implicit references for positional format fields
"UP027", # Replace unpacked list comprehension with a generator expression "UP027", # Replace unpacked list comprehension with a generator expression
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment