-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
37 lines (35 loc) · 1.57 KB
/
pyproject.toml
File metadata and controls
37 lines (35 loc) · 1.57 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
[tool.ruff]
line-length = 120
target-version = "py311"
lint.select = ["ALL"]
lint.ignore = [
"D211", # Keep blank line before class (D203)
"D212", # Keep line break for first line of docstring
"COM812", # Let the formatter handle trailing commas
"D203", # Let the formatter handle blank lines before classes
"D415", # Don't require closing punctuation in docstrings
"D400", # Same as above
"TRY003", # Don't require custom exception classes with default error messages/allow long error messages to be passed into exception class
"G004", # allow f strings to be passed into logging
"EM102", # allow f strings to be passed into exceptions
"EM101", # allow strings to be passed into exceptions
"D100", # don't enforce docstrings on modules
"D104", # don't enforce docstrings on public package elements
"D107", # don't enforce docstrings on __init__ methods
"D101", # don't enforce docstrings on public package elements
"FIX002", # allow TODO comments
"TD003", # allow TODO comments that aren't linked to a particular issue
"TD002", # allow TODO comments without authorship
"D413", # don't require blank line at end of docstring
"ERA001", # allow commented-out code
"E501", # don't enforce line length from linter
]
# Enforce absolute imports
src = ["."]
lint.extend-select = ["TID252"] # Relative imports not allowed
# Import sorting
[tool.ruff.lint.isort]
force-single-line = false
lines-after-imports = 2
relative-imports-order = "closest-to-furthest"
known-first-party = ["higher_pleasures"] # Replace with your package name