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:
@@ -1 +1,2 @@
|
||||
5530cc393682e555299ae444e692ccba9c616b2f
|
||||
383994cc377f7f5c951a26cdc7baaee2c0116af4
|
||||
|
||||
1
.github/workflows/python-package.yml
vendored
1
.github/workflows/python-package.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user