1
0
mirror of https://github.com/FreeOpcUa/opcua-asyncio synced 2025-10-29 17:07:18 +08:00

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

This commit is contained in:
Olivier
2024-10-26 12:06:06 +02:00
committed by oroulet
parent f214396cd5
commit 54895d2112
3 changed files with 6 additions and 0 deletions

View File

@@ -1 +1,2 @@
5530cc393682e555299ae444e692ccba9c616b2f
383994cc377f7f5c951a26cdc7baaee2c0116af4

View File

@@ -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:

View File

@@ -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