-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
127 lines (110 loc) · 2.82 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
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
[tool.ruff]
target-version = "py311"
indent-width = 4
line-length = 256 # Debating to change this.. not sure yet
output-format = "concise"
# Files to include/exclude
include = [
"index.py", # Usually my main file name scheme
"main.py",
]
exclude = [
"**/__pycache__",
"**/*.pyc",
"*.egg-info",
".venv",
"build",
"docs",
"dist",
]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ANN", # Annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"D", # pydocstyle
"DTZ", # flake8-datetimez
"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
"D104", # Missing docstring in public package
"D203", # 1 blank line required before class docstring
"D204", # 1 blank line required after 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
"D416", # Section name should end with a colon
# 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.11"
include = [
"index.py", # Usually my main file name scheme
"main.py",
]
exclude = [
"**/__pycache__",
"**/*.pyc",
"*.egg-info",
".venv",
"build",
"docs",
"dist",
]