Add ruff rules that look useful and are already passing

This commit is contained in:
Micah Jerome Ellison 2023-06-26 11:00:15 -07:00
parent 1ed2bd3c35
commit e7c7f5495f

View file

@ -141,8 +141,25 @@ filterwarnings = [
[tool.ruff] [tool.ruff]
line-length = 88 line-length = 88
# https://beta.ruff.rs/docs/rules/
select = [
'E',
'F',
'W',
'ASYNC',
'S110', # try-except-pass
'S112', # try-except-continue
'EM',
'ISC',
'Q',
'RSE',
'TID',
'TCH'
]
exclude = [".git", ".tox", ".venv", "node_modules"]
[tool.ruff.per-file-ignores] [tool.ruff.per-file-ignores]
"__init__.py" = ["F401"] "__init__.py" = ["F401"] # unused imports
[tool.flakeheaven] [tool.flakeheaven]
max_line_length = 88 max_line_length = 88