forked from Gobot1234/steam.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
155 lines (140 loc) · 4.14 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
[tool.poetry]
name = "steamio"
version = "1.0.0a"
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",
"steam/ext/__init__.pyi",
]
packages = [
{include = "steam"},
]
[tool.poetry.build]
script = "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.10"
aiohttp = "^3.8"
beautifulsoup4 = "^4.10"
cryptography = "^38.0"
betterproto = "2.0.0b4"
typing-extensions = "4.4.0"
vdf = "^3.4"
tomli = {version = "~2", optional = true, python = "<3.11"}
[tool.poetry.group.speedups]
optional = true
[tool.poetry.group.speedups.dependencies]
aiohttp = {version = ">=3.7,<3.9", extras = ["speedups"]}
lxml = "^4.8.0"
# orvdf = "^1.0.0"
orjson = "^3.6.8"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "^5.0"
myst-parser = "^0.18"
mypy = "^0.961"
sphinxcontrib_trio = "^1.1.2"
sphinx-copybutton = "^0.5.0"
sphinx-codeautolink = "^0.10.0"
csscompressor = "^0.9.5"
htmlmin = "^0.1.12"
rjsmin = "^1.2.0"
[tool.poetry.group.dev.dependencies]
black = "^22.3"
isort = "^5.10"
#flake8 = "^4.0"
pytest = "^7.1"
pytest-asyncio = "^0.18"
mypy = "^0.961"
pre-commit = "^2.18"
poethepoet = {version="^0.13", extras=["poetry_plugin"]}
blacken-docs = "^1.12"
[tool.poe.tasks]
test = {cmd = "pytest tests", help = "Run the tests"}
_blacken_docs = {script = "scripts.blacken_docs_correctly:main"}
_black = "black ."
_isort = "isort ."
fmt = {sequence = ["_blacken_docs", "_black", "_isort"], help = "Format the code"}
doc = {cmd = "sphinx-build -b html -T -W --keep-going docs/ docs/_build", help = "Build the documentation"} # TODO -n
add-cms = {script = "scripts.add_cms:main", help = "Add a default list of CMs for when the API is down"}
[tool.poe.tasks.decode]
script = "scripts.decode:main"
help = "Decode a recieved message from the Steam WS"
[tool.poe.tasks.decode.args.input]
required = true
positional = true
help = "A base64 encoded protobufs message from Steam to decode"
[tool.black]
line-length = 120
python_version = "py310"
[tool.isort]
profile = "black"
line_length = 120
combine_as_imports = true
atomic = true
ensure_newline_before_comments = true
[tool.blacken-docs]
line-length = 120
target-version = ["py310"]
[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"
pythonVersion = "3.10"
useLibraryCodeForTypes = true
exclude = ["tests", "steam/ext/commands"]
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"
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "strict"
[build-system]
requires = ["poetry-core>=1.1.0,<2", "tomli; python_version < '3.11'"]
build-backend = "poetry.core.masonry.api"