-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (117 loc) · 2.66 KB
/
pyproject.toml
File metadata and controls
135 lines (117 loc) · 2.66 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[project]
name = "API"
version = "0.0.1"
requires-python = ">=3.13"
dependencies = [
"quart>=0.20.0",
]
[dependency-groups]
dev = [
"prisma>=0.15.0",
"pyright>=1.1.401",
"ruff>=0.11.13",
]
[tool.ruff]
target-version = "py313"
line-length = 256
indent-width = 4
output-format = "concise"
include = [
"index.py",
]
exclude = [
"**/__pycache__",
"**/*.pyc",
"*.egg-info",
".venv",
"build",
"docs",
"dist",
]
[tool.ruff.lint]
select = [
# "DTZ", # flake8-datetimez
"A", # flake8-builtins
"ANN", # Annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"D", # pydocstyle
"E", # Error
"ERA", # eradicate
"F", # Pyflakes
"FIX", # flake8-fixme
"FLY", # flynt
"FURB", # refurb
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PIE", # flake8-pie
"PLE", # Pylint Errors
"PLW", # Pylint Warnings
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"T", # flake8-print
"TC", # type-checking
"UP", # pyupgrade
"W", # Warning
]
extend-select = ["W", "E"]
preview = true
ignore = [
# Docstring: function
"D100", # docstring in public module
"D203", # 1 blank line required before class docstring
"D210", # No whitespaces surrounding docstring text
"D212", # Multi-line docstring start at first line
"D400", # Strictly must end with a period
"D401", # First line should be in imperative mood
"D413", # Missing blank line after last section
# Annotations
"ANN003", # Missing type annotation for **kwargs
"ANN204", # Missing for __init__ method
# Type-checking
"TC001", "TC002", "TC003", "TC004", # Moving imports
# Docstring: Missing docs
"D101", # class
"D105", # magic method docstring required (__str__, __int__, etc)
"D107", # __init__ docstring required
# Except cases
"B904", # raise in except
# Simplify
"SIM105", # Use contextlib.suppress
"SIM114", # Merge if-else to one-liner
# Refurb
"FURB101", # read-whole-file
"FURB103", # write-whole-file
# Pylint Warnings
"PLW2901", # Overwrite loop control variable
# Type hints
"UP037", # type hints with quotes
# Variable shadowing
"A005", # Files
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.pyright]
reportOptionalOperand = "none"
reportOptionalSubscript = "none"
reportOptionalMemberAccess = "none"
reportUnnecessaryTypeIgnoreComment = "warning"
typeCheckingMode = "basic"
pythonVersion = "3.13"
include = [
"index.py",
]
exclude = [
"**/__pycache__",
"**/*.pyc",
"*.egg-info",
".venv",
"build",
"docs",
"dist",
]