This repository was archived by the owner on May 3, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
65 lines (63 loc) · 1.67 KB
/
Copy pathruff.toml
File metadata and controls
65 lines (63 loc) · 1.67 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
extend-exclude = []
line-length = 88
target-version = "py311"
lint.ignore = [
"D100", # modules don't need docstrings
"D104", # disable requirement for package docstrings
"D203", # a blank line is ugly
"D213", # multi line summaries go on the first line
"FIX", # Don't worry about FIXMEs etc.
"S101", # alerting on assert being used is mad when unit tests exist
"S311", # I DO NOT CARE ABOUT PSEUDO-RANDOM NUMBERS
"PLR2004", # I WILL USE WHATEVER GODDAMN MAGIC COMPARISON VALUES I WANT IN MY TESTS FUCK OFF RUFF
"RUF005", # no good for micropython
"TID252" # it's all relative imports down here
]
lint.select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C",
"C4", # flake8-comprehensions
"C90", # mccabe
"D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"EM", # flake8-errmsg
"EXE", # flake8-executable
"F",
"FBT", # flake8-boolean-trap
"FIX", # flake8-fixme
"FLY", # flynt
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"N", # PEP8 naming
"PERF", # perflint
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"SLOT", # flake8-slots
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT" # flake8-2020
]
[lint.flake8-builtins]
builtins-ignorelist = [
"id"
]
[lint.mccabe]
max-complexity = 10