-
Notifications
You must be signed in to change notification settings - Fork 7
/
ruff.toml
22 lines (20 loc) · 856 Bytes
/
ruff.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Enable flake8-bugbear (`B`) rules.
lint.select = [
"E", "F", "B", "PL", "S", "W", "N", "G", "C4", "EM",
"ISC", "ICN", "PIE", "T20", "PYI", "PT", "RET", "INT", "RUF"
]
line-length = 120
lint.ignore = [
"B905", # `zip()` without an explicit `strict=` parameter
"PT009", # Use a regular `assert` instead of unittest-style `{assertion}`
"S308", # Use of `mark_safe` may expose cross-site scripting vulnerabilities
"PLR2004", # magic-value-comparison
"N813", # Camelcase `BeautifulSoup` imported as lowercase `bs`
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]
# Ignore `E501` (line length) in all `__init__.py` and migration files
[lint.per-file-ignores]
"__init__.py" = ["E501"]
"**/migrations/*.py" = ["E501"]