-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
233 lines (218 loc) · 5.76 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
[tool.poetry]
name = "glitchygames"
version = "1.0.0"
description = "Glitchy Games and Tools for Pygame and Python 3"
authors = [
"Terry Simons <terry.simons@gmail.com>",
"Rich Saupe <sabadam32@gmail.com>",
]
maintainers = [
"Terry Simons <terry.simons@gmail.com>",
"Rich Saupe <sabadam32@gmail.com>",
]
readme = "README.md"
license = "BSD-3-Clause"
classifiers = [
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent"
]
include = [
'glitchygames/assets',
'glitchygames/config',
'glitchygames/resources',
'glitchygames/fonts',
'glitchygames/tools'
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/terrysimons/glitchygames/issues/"
"homepage" = "https://glitchygames.ai/"
"documentation" = "https://glitchygames.ai/documentation/"
[tool.poetry.scripts]
bitmappy = "glitchygames.tools.bitmappy:main"
[tool.poetry.dependencies]
python = ">= 3.12, < 4.0"
toml = "*"
pygame = "*"
future = "*"
cookiecutter = "*"
[tool.poetry.group.dev.dependencies]
nox = "*"
nox-poetry = "*"
pytest = "*"
ruff = "*"
pre-commit = "*"
poetry-plugin-export = "*"
pyright = "*"
# [tool.poetry.group.docs.dependencies]
# mkdocs = "*"
# mkdocstrings = {extras = ["crystal", "python"], version = "*"}
# mkdocs-material = "*"
# mkdocs-gen-files = "*"
# mkdocs-literate-nav = "*"
# mkdocs-section-index = "*"
# pymdown-extensions = "*"
# mkdocs-autorefs = "*"
# mkdocs-macros-plugin = "*"
# mkdocstrings-python = "*"
[tool.poetry.extras]
docs = ["mkdocs", "mkdocstrings", "mkdocs-material", "mkdocs-gen-files", "mkdocs-literate-nav", "mkdocs-section-index", "pymdown-extensions", "mkdocs-autorefs", "mkdocs-macros-plugin", "mkdocstrings-python"]
dev = ["nox", "nox-poetry", "pytest", "ruff", "pre-commit", "pyright", "poetry-plugin-export"]
[tool.ruff]
line-length = 100
output-format = "grouped"
lint.ignore-init-module-imports = true
src = ["glitchygames", "tests", "scripts"]
lint.task-tags = ["HACK", "TODO", "FIXME", "XXX", "NOTE", "BUG", "OPTIMIZE", "WIP"]
include = ["glitchygames/*.py", "tests/**/*.py", "scripts/**/*.py", "noxfile.py"]
extend-include = []
lint.select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"D",
"UP",
"YTT",
"ANN",
"ASYNC",
"TRIO",
"S",
"BLE",
"FBT",
"B",
"A",
"COM",
"CPY",
"C4",
"DTZ",
"T10",
"DJ",
"EM",
"EXE",
"FA",
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID",
"TCH",
"INT",
"ARG",
"PTH",
"TD",
"FIX",
"ERA",
"PD",
"PGH",
"PL",
"TRY",
"FLY",
"NPY",
"AIR",
"PERF",
"FURB",
"LOG",
"RUF",
]
lint.ignore = [
#"ASYN",
"FIX002", # Line contains TODO, consider resolving the issue
"SLF001", # Private member accessed (Needed for some annotations, like argparse._ArgumentGroup)
"S311", # Standard pseudo-random generators are not suitable for security/cryptographic purposes.
"COM812", # Trailing comma missing
"G004", # Logging statement uses f-string
"ISC002", # Use of implicit string concatenation
"ERA001", # Found commented-out code
"PLR0911", # Too many return statements
"C901", # Function is too complex
"EM102", # Exception must not use an f-string literal, assign to variable first
"TRY003", # Avoid specifying long messages outside the exception class
"ARG002", # Unused method argument: `args`
"TD003", # Missing issue link on the line following this TODO
"PLR0913", # Too many arguments to function call
"TD002", # Missing author in TODO
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
"S101",
"PLR0917", # Too many positional arguments
"PLR0904", # Too many public methods
"CPY001", # Missing copyright notice at top of file
"B019", # Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
"EM101", # Exception must not use a string literal, assign to variable first
"ISC001", # Use of implicit string concatenation (this conflicts with ruff format)
"ANN102", # Missing type annotation for `cls` in classmethod
]
lint.exclude = []
lint.fixable = [
"I001",
"Q000",
"EXE001",
"ANN",
"ANN101"
]
lint.unfixable = []
target-version = "py312"
[tool.ruff.format]
quote-style = "single"
docstring-code-format = true
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
ignore-fully-untyped = false
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pyright]
include = ["glitchygames", "tests", "scripts"]
exclude = [
"**/__pycache__",
]
ignore = []
defineConstant = { DEBUG = true }
# stubPath = "src/stubs"
pythonVersion = "3.12"
pythonPlatform = "All"
executionEnvironments = [
# { root = "src/web", pythonVersion = "3.5", pythonPlatform = "Windows", extraPaths = [ "src/service_libs" ] },
# { root = "src/sdk", pythonVersion = "3.0", extraPaths = [ "src/backend" ] },
# { root = "src/tests", extraPaths = ["src/tests/e2e", "src/sdk" ]},
{ root = "glitchygames", extraPaths = [ "scripts", "tests" ]}
]
reportMissingImports = false
reportMissingTypeStubs = false
reportAttributeAccessIssue = false
reportIncompatibleMethodOverride = false
reportReturnType = false
reportArgumentType = false
reportAbstractUsage = false
reportGeneralTypeIssues = false
reportOptionalMemberAccess = false
reportCallIssue = false
reportOptionalIterable = false
reportIncompatibleVariableOverride = false
reportOptionalSubscript = false
reportIndexIssue = false
reportAssignmentType = false
reportOperatorIssue = false
reportFunctionMemberAccess = false
reportPossiblyUnboundVariable = false
reportRedeclaration = false
reportPrivateImportUsage = false
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"