-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
116 lines (102 loc) · 4.49 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "boosty"
description = "Asynchronous boosty wrapper with some utils"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
keywords = ["boosty", "wrapper", "asyncio"]
authors = [
{ name = "barsikus007" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"pydantic[email]~=2.8",
"aiohttp~=3.9",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://github.com/barsikus007/boosty#readme"
Issues = "https://github.com/barsikus007/boosty/issues"
Source = "https://github.com/barsikus007/boosty"
[project.optional-dependencies]
browser = ["playwright~=1.48"]
fast = ["aiohttp[speedups]~=3.9"]
all = ["boosty[browser,fast]"]
[tool.hatch.version]
path = "boosty/__init__.py"
[tool.hatch.envs.default]
dependencies = [
"pytest~=8.2.1",
"pytest-cov~=5.0.0",
"pytest-asyncio~=0.23.7",
]
features = [
"all",
]
[tool.hatch.envs.default.scripts]
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=boosty --cov=tests {args}"
no-cov = "cov --no-cov {args}"
[[tool.hatch.envs.test.matrix]]
python = ["310", "311", "312", "313"]
[tool.pytest.ini_options]
log_cli = true
[tool.coverage.run]
branch = true
parallel = true
omit = [
"boosty/utils/browser_login.py",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", "ISC001", # for ruff formatter
"ANN001", # for default=True like vars
"ANN101", # for self
"ANN102", # for cls
"ANN201", # for handlers return
"ANN204", # for __init__ return None
"ANN401", # for Any
"EM101", "TRY003", # for strings in exceptions
"D", "TD", "FIX", # for TODOs
"ERA", # for commented code
"RET502", # for return without None
"RET503", # for function without return
"RUF001", # for cyrillic
]
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = [
"S101", # allow asserts
]
"boosty/types/**.py" = [
"A003", # cause schema have id fields
"N815", # cause schema in camelCase
]
"boosty/utils/**.py" = [
"A003", # cause schema have id fields
"N815", # cause schema in camelCase
]
[tool.pylint]
disable = [
# curl https://api.github.com/repos/astral-sh/ruff/issues/970 | jq -r .body | grep -F '[x]' | cut -d'/' -f 2 | cut -c 3-7 | awk '{printf "\"%s\",", $1}'
"E0237","E1142","E0014","E1300","E0013","E1310","E1307","E2502","E6005","E6004","E0116","E0108","E0241","E1303","E0102","E0100","E0605","E0604","E0304","E0308","E2510","E2513","E2514","E2512","E2515","E0309","E0305","E0303","E1206","E1205","E0704","E1304","E1302","E4703","E0213","E0107","E0115","E0117","E0103","E0711","E0643","E0402","E1132","E0106","E0101","E0104","E1519","E1520","E0001","E1306","E1305","E0112","E1301","E0603","E0602","E0302","E0118","E1700","E0105","W1401","W0129","W0199","W3201","W1302","W1300","W1501","W0211","W0702","W0711","W1502","W0718","W0719","W0640","W0160","W0102","W0705","W0109","W1308","W0130","W1641","W0123","W0122","W0106","W1309","W0511","W1515","W1305","W1310","W0604","W0603","W0602","W1404","W0406","W1405","W1508","W1113","W1202","W1203","W1201","W0150","W1518","W0410","W1303","W0131","W0177","W3301","W2402","W0133","W0104","W0212","W0707","W0622","W2901","W1406","W0404","W0127","W1509","W1510","W0245","W0706","W0012","W0108","W0107","W0301","W1514","W0613","W1304","W1301","W0611","W0612","W0120","W2101","W2601","W0401","C0202","C0198","C1901","C0201","C0501","C0206","C0199","C0112","C0415","C2701","C0103","C0301","C2201","C0115","C0304","C0116","C0114","C0410","C0321","C2403","C2401","C0205","C0121","C0303","C0131","C0105","C0132","C0412","C0123","C3002","C2801","C3001","C0113","C0208","C0414","C0411","C0413","R0133","R0124","R6003","R1701","R6002","R6104","R1717","R1728","R1715","R1714","R1730","R1731","R1718","R1722","R1706","R1732","R5501","R2044","R1710","R0123","R2004","R0202","R1723","R1724","R1720","R1705","R6301","R0203","R0206","R1704","R1719","R1703","R1725","R1260","R0913","R0916","R0912","R0914","R1702","R0904","R0911","R0915","R1707","R1721","R1733","R1736","R1729","R1735","R1734","R6201","R0205","R0022","R1711",
]