Skip to content

Commit

Permalink
add format check to CI (might already have there but..)
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier authored and oroulet committed Oct 27, 2024
1 parent f214396 commit 54895d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
5530cc393682e555299ae444e692ccba9c616b2f
383994cc377f7f5c951a26cdc7baaee2c0116af4
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54895d2

Please sign in to comment.