-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
56 lines (50 loc) · 1.38 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
[tool.ruff]
exclude = ["docs", "build"]
line-length = 120
target-version = "py310" # CHANGE ME if using newer Python
[tool.ruff.lint]
select = [
"E", # Errors
"F", # Pyflakes
"I", # Import sorting
"TCH", # Typechecking imports
"N", # Naming conventions
"D2", # Docstring
"D3", # Docstring
"D415", # Docstring
"D417", # Docstring
"D418", # Docstring
"D419", # Docstring
"ASYNC", # Async antipatterns
"Q", # Quotes
"RSE", # Raise quotes
"SIM", # Simplicity
"RUF", # Ruff-specific
]
ignore = [
"F405", # Star imports
"F403", # Star imports
"E501", # Line too long
"D205", # Blank line required between summary line and description
]
fixable = [
"I", # Import sorting
"TCH", # Type-checking imports
"D", # Docstring formatting
]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint.pydocstyle]
convention = "numpy" # Autodocstring convention
# Disable mypy because it is annoying when using pyright
[tool.mypy]
ignore_errors = true
[tool.pyright]
pythonVersion = "3.10" # CHANGE ME if using newer Python
# You can change this to "strict" if you want
typeCheckingMode = "basic"
reportUnnecessaryTypeIgnoreComment = "warning"
reportUninitializedInstanceVariable = "error"
reportShadowedImports = "warning"