-
Notifications
You must be signed in to change notification settings - Fork 317
Expand file tree
/
Copy pathruff.toml
More file actions
35 lines (32 loc) · 875 Bytes
/
Copy pathruff.toml
File metadata and controls
35 lines (32 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# https://github.com/astral-sh/ruff#configuration
# https://docs.astral.sh/ruff/configuration/
# https://docs.astral.sh/ruff/settings/
line-length = 320
target-version = 'py313'
extend-exclude = ['bin', 'Python.py']
[lint]
# https://docs.astral.sh/ruff/rules/
select = [
'B', # flake8-bugbear
'E', # pycodestyle
'F', # Pyflakes
'PL', # Pylint
'RUF', # Ruff
'UP', # pyupgrade
'FURB', # refurb
]
ignore = [
'E501', # line-too-long
'F403', # undefined-local-with-import-star
'F405', # undefined-local-with-import-star-usage
'PLR0912', # too-many-branches
'PLR0913', # too-many-arguments
'PLR0915', # too-many-statements
'PLR2004', # magic-value-comparison
'PLW2901', # redefined-loop-name
]
[lint.per-file-ignores]
'scintilla/scripts/*.py' = [
'RUF001', # ambiguous-unicode-character-string
'RUF003', # ambiguous-unicode-character-comment
]