-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
200 lines (179 loc) · 4.06 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
[tool.poetry]
name = "vapor-steam"
version = "1.5.8"
description = "TUI program to check the ProtonDB compatibility of all the games of a Steam user."
authors = ["TabulateJarl8 <[email protected]>"]
license = "GPLv3"
readme = "README.md"
packages = [{ include = "vapor" }]
homepage = "https://tabulate.tech/software/vapor"
repository = "https://github.com/TabulateJarl8/vapor"
keywords = ["steam", "protondb", "compatibility", "textual", "tui"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
include = [{ path = "tests", format = "sdist" }]
[tool.poetry.dependencies]
python = "^3.8.1"
textual = "^0.79.1"
aiohttp = "^3.9.5"
platformdirs = "^4.3.2"
typing-extensions = "^4.12.2"
[tool.poetry.scripts]
vapor = "vapor.__main__:main"
[tool.poetry.group.dev.dependencies]
textual-dev = "^1.6.1"
ruff = "^0.6.4"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"
pytest-asyncio = "^0.24.0"
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
[tool.pyright]
reportUnusedCallResult = false
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.report]
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# dont test functions that only make network calls
"async def async_get",
"async def get_anti_cheat_data",
"async def get_game_average_rating",
"async def resolve_vanity_name",
"async def get_steam_user_data",
# dont test status checking
"if data.status != 200",
]
omit = ["*/__main__.py"]
[tool.ruff.lint]
preview = true
extend-select = [
# pycodestyle
"E",
# Warnings
"W",
# Pyflakes
"F",
# pydocstyle
"D",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# pep8-naming
"N",
# flake8-bandit
"S",
# flake8-boolean-trap
"FBT",
# flake8-comprehensions
"C4",
# flake8-pie
"PIE",
# quote rules
"Q001",
"Q002",
# flake8-raise
"RSE",
# flake8-return
"RET",
# flake8-unused-arguments
"ARG",
# flake8-use-pathlib
"PTH",
# eradicate
"ERA",
# perflint
"PERF",
# flake8-2020
"YTT",
# flake8-annotations
"ANN",
# flake8-async
"ASYNC",
# flake8-builtins
"A",
# flake8-commas
"COM",
# flake8-implicit-str-concat
"ISC",
# flake8-print
"T20",
# flake8-pytest-style
"PT",
# flake8-use-pathlib
"PTH",
# pylint
"PL",
# tryceratops
"TRY",
# refurb
"FURB",
# pydoclint
"DOC",
# ruff rules
"RUF",
]
ignore = [
# complains about tab indentation
"W191",
"D206",
# adds a line break before a class docstring
"D203",
# puts the first line summary of a docstring on a different line than the """
"D213",
# tries to add a blank line after the last docstring section
"D413",
# yells at you if you use a bool typed function argument
"FBT001",
"FBT002",
# yells at you for using try-except in a for loop
"PERF203",
# allow for the use of Any
"ANN401",
# false positives for overriding methods (i think)
"PLR6301",
# disable too many branches check
"PLR0912",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "ANN001", "ANN002", "PLC2701", "ARG002", "PLR2004", "DOC"]
"vapor/main.py" = ["DOC402"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "single"
indent-style = "tab"
line-ending = "lf"
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
order-by-type = true