-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
pyproject.toml
189 lines (169 loc) · 5.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
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
[tool.poetry]
name = "steamio"
version = "1.0.1"
description = "A Python wrapper for the Steam API"
authors = ["Gobot1234 <[email protected]>"]
license = "MIT"
readme = "README.md"
keywords = ["steam.py", "steam", "steamio", "steam-api"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
include = ["LICENSE", "steam/__metadata__.py", "steam/py.typed"]
packages = [{ include = "steam" }]
[tool.poetry.build]
script = "poetry_build.py"
generate-setup-file = false
[tool.poetry.urls]
"Documentation" = "https://steam-py.github.io/docs/latest"
"Code" = "https://github.com/Gobot1234/steam.py"
"Bug Tracker" = "https://github.com/Gobot1234/steam.py/issues"
[tool.poetry.dependencies]
python = "^3.11"
aiohttp = "^3.8"
beautifulsoup4 = "^4.10"
cryptography = ">=41,<43"
betterproto = "2.0.0b6"
typing-extensions = "4.10.0"
vdf = "^3.4"
# taskgroup = { git = "https://github.com/Gobot1234/taskgroup", rev = "default", python = "<3.11" }
[tool.poetry.group.speedups]
optional = true
[tool.poetry.group.speedups.dependencies]
aiohttp = { version = "^3.8", extras = ["speedups"] }
lxml = ">=4.8,<6.0"
# orvdf = "^1.0.0"
orjson = "^3.6.8"
# betterproto = { git = "https://github.com/danielgtaylor/python-betterproto", rev = "master", extras = ["rust-codec"] }
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "^7"
myst-parser = "^2"
sphinxcontrib_trio = "^1.1.2"
sphinx-copybutton = "^0.5.0"
sphinx-codeautolink = "^0.15"
csscompressor = "^0.9.5"
htmlmin = "^0.1.12"
rjsmin = "^1.2.0"
click = "^8.1.6"
[tool.poetry.group.examples]
optional = true
[tool.poetry.group.examples.dependencies]
"discord.py" = "^2"
babel = "^2"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = "^23.1"
isort = "^5.10"
pytest = ">=7.1,<9.0"
pytest-asyncio = ">=0.21,<0.24"
pre-commit = "^3.1"
poethepoet = ">=0.24,<0.26"
blacken-docs = "^1.12"
ruff = "^0.1.8"
tomli = { version = "~2", python = "<3.11" }
hypothesis = "^6.82.0"
types-docutils = "^0.20.0.1"
[tool.poe.tasks]
fmt = { sequence = [
{ script = "scripts.blacken_docs_correctly:main" },
{ cmd = "black ." },
{ cmd = "ruff . --select=I --fix" },
], ignore_fail = true, help = "Format the code" }
doc = { cmd = "sphinx-build -b html -T -W --keep-going docs/ docs/_build", help = "Build the documentation" } # TODO -n
# Along with https://github.com/python/cpython/blob/main/Doc/tools/check-warnings.py
add-cms = { script = "scripts.add_cms:main", help = "Add a default list of CMs for when the API is down" }
[tool.poe.tasks.test]
help = "Run the tests"
control.expr = "type"
[tool.poe.tasks.test.args.type]
required = true
positional = true
help = "Which types of tests to run can be one of 'full', 'all', 'unit' or 'integration'"
[[tool.poe.tasks.test.switch]]
case = ["full", "all"]
cmd = "pytest tests"
[[tool.poe.tasks.test.switch]]
case = "unit"
cmd = "pytest tests/unit"
[[tool.poe.tasks.test.switch]]
case = "integration"
cmd = "pytests tests/integration"
[tool.poe.tasks.decode]
script = "scripts.decode:main"
help = "Decode a recieved message from the Steam WS"
[tool.poe.tasks.decode.args.input_message]
required = true
positional = true
help = "A base64 encoded protobufs message from Steam to decode"
[tool.black]
line-length = 120
target-version = ["py310"]
[tool.blacken-docs]
line-length = 120
target-version = ["py310"]
[tool.ruff]
requires-python = ">= 3.10"
[tool.ruff.lint]
line-length = 120
select = ["C4", "F", "G", "I", "PTH", "RUF", "SIM", "TCH", "UP", "W", "PERF"]
ignore = ["F401", "F402", "F403", "F405", "PERF203", "RUF001", "RUF009", "SIM105", "UP034", "UP038"]
[tool.ruff.isort]
split-on-trailing-comma = true
combine-as-imports = true
[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
allow_redefinition = true
show_error_codes = true
warn_no_return = false
pretty = true
[tool.pyright]
typeCheckingMode = "basic"
useLibraryCodeForTypes = true
reportSelfClsParameterName = "none"
reportUntypedFunctionDecorator = "error"
reportUntypedClassDecorator = "error"
reportUntypedNamedTuple = "error"
reportImplicitStringConcatenation = "error"
reportOverlappingOverload = "error"
reportMissingTypeArgument = "error"
strictListInference = true
strictDictionaryInference = true
strictSetInference = true
strictParameterNoneValue = true
reportMissingImports = "error"
reportUnusedImport = "error"
reportFunctionMemberAccess = "warning"
reportDuplicateImport = "error"
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnknownParameterType = "error"
reportUnknownReturnType = "error"
# reportUnknownArgumentType = "error"
reportUnknownMemberType = "error"
reportUnnecessaryComparison = true
reportUnnecessaryContains = true
reportIncompatibleMethodOverride = true
reportIncompatibleVariableOverride = true
reportShadowedImports = "none"
reportPrivateImportUsage = false
deprecateTypingAliases = true
enableExperimentalFeatures = true
ignore = ["docs"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[build-system]
requires = ["poetry-core>=1.1.0,<2", "tomli; python_version < '3.11'"]
build-backend = "poetry.core.masonry.api"