mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Add ruff rules that look useful and are already passing
This commit is contained in:
parent
1ed2bd3c35
commit
e7c7f5495f
1 changed files with 18 additions and 1 deletions
|
@ -141,8 +141,25 @@ filterwarnings = [
|
|||
[tool.ruff]
|
||||
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]
|
||||
"__init__.py" = ["F401"]
|
||||
"__init__.py" = ["F401"] # unused imports
|
||||
|
||||
[tool.flakeheaven]
|
||||
max_line_length = 88
|
||||
|
|
Loading…
Add table
Reference in a new issue