[DEV] Use ruff linter
This commit is contained in:
parent
1b2e34bad4
commit
f6da656c14
1 changed files with 22 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ lint = [
|
||||||
"black==24.10.0",
|
"black==24.10.0",
|
||||||
"isort==6.1.0",
|
"isort==6.1.0",
|
||||||
"pylint==3.3.8",
|
"pylint==3.3.8",
|
||||||
|
"ruff==0.14.0",
|
||||||
]
|
]
|
||||||
docs = [
|
docs = [
|
||||||
"sphinx>=7,<9",
|
"sphinx>=7,<9",
|
||||||
|
|
@ -100,3 +101,24 @@ include = [
|
||||||
exclude_also = [
|
exclude_also = [
|
||||||
"raise UNREACHABLE.*",
|
"raise UNREACHABLE.*",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# ruff
|
||||||
|
[tool.ruff]
|
||||||
|
line-length = 100
|
||||||
|
indent-width = 4
|
||||||
|
|
||||||
|
# Assume Python 3.10
|
||||||
|
target-version = "py310"
|
||||||
|
|
||||||
|
[tool.ruff.format]
|
||||||
|
# Like Black, use double quotes for strings.
|
||||||
|
quote-style = "double"
|
||||||
|
|
||||||
|
# Like Black, indent with spaces, rather than tabs.
|
||||||
|
indent-style = "space"
|
||||||
|
|
||||||
|
# Like Black, respect magic trailing commas.
|
||||||
|
skip-magic-trailing-comma = false
|
||||||
|
|
||||||
|
# Like Black, automatically detect the appropriate line ending.
|
||||||
|
line-ending = "auto"
|
||||||
Loading…
Reference in a new issue