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
27 lines (25 loc) · 697 Bytes
/
ruff.toml
File metadata and controls
27 lines (25 loc) · 697 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
exclude = [
"wagtail/project_template/*",
"node_modules",
"venv",
".venv",
"migrations",
]
line-length = 88
target-version = "py39" # 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
select = ["E", "F", "I", "T20", "BLE", "C4"]