Skip to content

Commit 1e3475a

Browse files
committed
updates ruff config to 'current' standar
1 parent cf137bd commit 1e3475a

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,24 @@ exclude = [
107107
"hyperglass/api/examples/*.py",
108108
"hyperglass/compat/_sshtunnel.py",
109109
]
110+
line-length = 100
111+
112+
[tool.ruff.format]
113+
quote-style = "double"
114+
indent-style = "space"
115+
skip-magic-trailing-comma = false
116+
line-ending = "auto"
117+
118+
[tool.ruff.lint.pydocstyle]
119+
convention = "pep257"
120+
121+
[tool.ruff.lint.mccabe]
122+
max-complexity = 10
123+
124+
[tool.ruff.lint]
125+
fixable=["ALL"]
126+
unfixable=[]
127+
select = ["B", "C", "D", "E", "F", "I", "N", "S", "RET", "W"]
110128
ignore = [
111129
# "W503",
112130
"RET504",
@@ -128,14 +146,6 @@ ignore = [
128146
"B905", # zip without `strict`
129147
"W293", # blank line contains whitespace
130148
]
131-
line-length = 100
132-
select = ["B", "C", "D", "E", "F", "I", "N", "S", "RET", "W"]
133-
134-
[tool.ruff.pydocstyle]
135-
convention = "pep257"
136-
137-
[tool.ruff.mccabe]
138-
max-complexity = 10
139149

140150
[tool.ruff.lint.per-file-ignores]
141151
"hyperglass/main.py" = ["E402"]

0 commit comments

Comments
 (0)