-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
40 lines (36 loc) · 1.36 KB
/
Copy pathruff.toml
File metadata and controls
40 lines (36 loc) · 1.36 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
# Ruff configuration
# See More: https://docs.astral.sh/ruff/configuration/
#
# NOTE: relative paths in this file are resolved from afterpython/, not the
# project root, e.g. use "../tests/*" to target the project's tests/ folder.
# where your own (first-party) packages live, used by import sorting:
# ".." = project root (flat layout), "../src" = src layout
src = ["..", "../src"]
line-length = 88
target-version = "py312"
[lint]
# ruff default rules:
select = [
"E4", # import-related errors (e.g., undefined names in imports)
"E7", # statement errors (e.g., multiple statements on one line)
"E9", # runtime errors (e.g., syntax errors, indentation issues)
"F", # Pyflakes - logical errors (e.g., unused imports, undefined variables)
]
# ignored rules:
ignore = [
"E501", # line too long
"N816", # pep8-naming - allow mixedCase variable names in function scope
]
# extended rules:
extend-select = [
"I", # isort - import sorting
"UP", # pyupgrade - upgrade syntax for newer Python
"B", # flake8-bugbear - find likely bugs
"SIM", # flake8-simplify - simplify code
# "C90", # mccabe - complexity checking
"N", # pep8-naming - enforce naming conventions
"RUF", # ruff-specific rules
]
[format]
quote-style = "double" # double quotes for strings
indent-style = "space" # indent with spaces, rather than tabs.