mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 00:38:06 +00:00
updates ruff config to 'current' standar
This commit is contained in:
parent
cf137bd7e8
commit
1e3475a4ad
1 changed files with 18 additions and 8 deletions
|
|
@ -107,6 +107,24 @@ exclude = [
|
||||||
"hyperglass/api/examples/*.py",
|
"hyperglass/api/examples/*.py",
|
||||||
"hyperglass/compat/_sshtunnel.py",
|
"hyperglass/compat/_sshtunnel.py",
|
||||||
]
|
]
|
||||||
|
line-length = 100
|
||||||
|
|
||||||
|
[tool.ruff.format]
|
||||||
|
quote-style = "double"
|
||||||
|
indent-style = "space"
|
||||||
|
skip-magic-trailing-comma = false
|
||||||
|
line-ending = "auto"
|
||||||
|
|
||||||
|
[tool.ruff.lint.pydocstyle]
|
||||||
|
convention = "pep257"
|
||||||
|
|
||||||
|
[tool.ruff.lint.mccabe]
|
||||||
|
max-complexity = 10
|
||||||
|
|
||||||
|
[tool.ruff.lint]
|
||||||
|
fixable=["ALL"]
|
||||||
|
unfixable=[]
|
||||||
|
select = ["B", "C", "D", "E", "F", "I", "N", "S", "RET", "W"]
|
||||||
ignore = [
|
ignore = [
|
||||||
# "W503",
|
# "W503",
|
||||||
"RET504",
|
"RET504",
|
||||||
|
|
@ -128,14 +146,6 @@ ignore = [
|
||||||
"B905", # zip without `strict`
|
"B905", # zip without `strict`
|
||||||
"W293", # blank line contains whitespace
|
"W293", # blank line contains whitespace
|
||||||
]
|
]
|
||||||
line-length = 100
|
|
||||||
select = ["B", "C", "D", "E", "F", "I", "N", "S", "RET", "W"]
|
|
||||||
|
|
||||||
[tool.ruff.pydocstyle]
|
|
||||||
convention = "pep257"
|
|
||||||
|
|
||||||
[tool.ruff.mccabe]
|
|
||||||
max-complexity = 10
|
|
||||||
|
|
||||||
[tool.ruff.lint.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
"hyperglass/main.py" = ["E402"]
|
"hyperglass/main.py" = ["E402"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue