-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
78 lines (74 loc) · 2.35 KB
/
pyproject.toml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
[tool.ruff]
fix = true
fix-only = true
target-version = "py310"
line-length = 88
[tool.ruff.format]
# Enable reformatting of code snippets in docstrings
docstring-code-format = true
# Format all docstring code snippets with a line length of 60
docstring-code-line-length = 60
# Use `\n` line endings for all files
line-ending = "lf"
# Prefer single quotes over double quotes
quote-style = "double"
skip-magic-trailing-comma = true
[tool.ruff.lint]
extend-select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"EXE", # flake8-executable
"FA", # flake8-future-annotations
"G", # flake8-logging-format
"INT", # flake8-gettext
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"SLOT", # flake8-slots
"T10", # flake8-debugger
"YTT", # flake8-2020
"DTZ", # naive datetime
"I", # import sorting
"ISC", # string concatenation
"NPY", # numpy specific rules
"PD", # pandas-vet
"PERF", # perflint
"RUF", # ruff
"S", # security
"SIM", # simplify
"T10", # debugger
"TCH", # type-checking imports
"TID", # tidy imports
"UP", # upgrade
]
fixable = ["ALL"]
ignore = [
"B905", # `zip()` without an explicit `strict=` parameter
"EM101", # exception must not use a string literal
"EM102", # exception must not use an f-string literal
"ISC001", # conflicts with formatter
"NPY002", # replace legacy `np.random.random`
"E501", # line too long
"E741",
"F403",
"F405",
"RUF001", # string contains ambiguous character (such as greek letters)
"RUF002", # docstring contains ambiguous character (such as greek letters)
"RUF003",
]
unfixable = []
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
case-sensitive = true
combine-as-imports = true
force-single-line = true
force-wrap-aliases = true
order-by-type = true