forked from wagtail/wagtail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
29 lines (27 loc) · 857 Bytes
/
ruff.toml
File metadata and controls
29 lines (27 loc) · 857 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
exclude = [
"wagtail/project_template/*",
"node_modules",
"venv",
".venv",
"migrations",
]
line-length = 88
target-version = "py310" # minimum target version
[lint]
# D100: Missing docstring in public module
# D101: Missing docstring in public class
# D102: Missing docstring in public method
# D103: Missing docstring in public function
# D105: Missing docstring in magic method
# N806: Variable in function should be lowercase
# E501: Line too long
ignore = ["D100", "D101", "D102", "D103", "D105", "N806", "E501"]
# E: pycodestyle errors
# F: Pyflakes
# I: isort
# T20: flake8-print
# BLE: flake8-blind-except
# C4: flake8-comprehensions
# B006: Do not use mutable data structures for argument defaults
# B904: Within an `except` clause, raise exceptions with `raise ... from err`
select = ["E", "F", "I", "T20", "BLE", "C4", "B006", "B904"]