github/workflows: Add GitHub Action to lint Python code with ruff.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
committed by
Damien George
parent
2a1db770ce
commit
78a1aa1711
@@ -22,3 +22,27 @@ skip = """
|
||||
./tests,\
|
||||
ACKNOWLEDGEMENTS,\
|
||||
"""
|
||||
|
||||
[tool.ruff]
|
||||
exclude = ["lib", "tests"]
|
||||
extend-select = ["C9", "PLC"]
|
||||
ignore = [
|
||||
"E401",
|
||||
"E402",
|
||||
"E722",
|
||||
"E731",
|
||||
"E741",
|
||||
"F401",
|
||||
"F403",
|
||||
"F405",
|
||||
"F821",
|
||||
"PLC1901",
|
||||
]
|
||||
line-length = 337
|
||||
target-version = "py37"
|
||||
|
||||
[tool.ruff.mccabe]
|
||||
max-complexity = 40
|
||||
|
||||
[tool.ruff.per-file-ignores]
|
||||
"ports/cc3200/tools/uniflash.py" = ["E711"]
|
||||
|
||||
Reference in New Issue
Block a user