Add ruff for linting and update configuration in pyproject.toml
This commit is contained in:
@@ -16,4 +16,27 @@ dependencies = [
|
||||
dev = [
|
||||
"pre-commit>=4.2.0",
|
||||
"pyinstaller>=6.14.2",
|
||||
"ruff>=0.12.5",
|
||||
]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
# pycodestyle
|
||||
"E",
|
||||
# Pyflakes
|
||||
"F",
|
||||
# pyupgrade
|
||||
"UP",
|
||||
# flake8-bugbear
|
||||
"B",
|
||||
# flake8-simplify
|
||||
"SIM",
|
||||
# isort
|
||||
"I",
|
||||
]
|
||||
|
||||
[tool.ruff.format]
|
||||
docstring-code-format = true
|
||||
|
||||
[tool.ruff.lint.pycodestyle]
|
||||
max-line-length = 88
|
||||
|
||||
Reference in New Issue
Block a user