chore: add ruff checks
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
[tool.ruff]
|
||||
target-version = "py310"
|
||||
line-length = 120
|
||||
extend-exclude = [
|
||||
"build",
|
||||
"chrome_user_data_dir",
|
||||
"data",
|
||||
"dist",
|
||||
"images",
|
||||
"logs",
|
||||
"release",
|
||||
]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E4", "E7", "E9", "F"]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"app/cdp.py" = ["E402"]
|
||||
"main.py" = ["E402"]
|
||||
"app/gui/*.py" = ["F403", "F405"]
|
||||
"app/gui/tabs/*.py" = ["F403", "F405"]
|
||||
"app/gui/__init__.py" = ["F401", "F403", "F405"]
|
||||
"app/gui/widgets.py" = ["E402", "F401"]
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "double"
|
||||
indent-style = "space"
|
||||
line-ending = "auto"
|
||||
docstring-code-format = false
|
||||
Reference in New Issue
Block a user