-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
155 lines (140 loc) · 3.37 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
[build-system]
requires = ["setuptools >= 75.0"]
build-backend = "setuptools.build_meta"
[project]
name = "lootscraper"
version = "1.14.3"
description = "RSS feeds and Telegram bot for free game and loot offers."
requires-python = ">=3.12.7"
readme = "README.md"
authors = [{ name = "Eiko Wagenknecht", email = "[email protected]" }]
license = { text = "CC-BY-NC-SA-4.0" }
dependencies = [
"alembic==1.14.0",
"feedgen==1.0.0",
"humanize==4.11.0",
"httpx==0.28.1",
"python-telegram-bot[rate-limiter]==21.9",
"playwright==1.49.1",
"SQLAlchemy==2.0.36",
"Unidecode==1.3.8",
"xvfbwrapper==0.2.9",
"jinja2==3.1.4",
"schedule==1.2.2",
"pytz==2024.2",
]
[project.scripts]
lootscraper = "lootscraper.main:main"
[dependency-groups]
dev = [
"ruff==0.8.1",
"mypy==1.13.0",
"scalene==1.5.48",
"pytest==8.3.4",
"setuptools==75.6.0",
"wheel==0.45.1",
]
[project.urls]
Homepage = "https://github.com/eikowagenknecht/lootscraper"
Issues = "https://github.com/eikowagenknecht/lootscraper/issues"
[tool.setuptools.package-data]
lootscraper = ["data/config.default.toml"]
[tool.semantic_release]
version_toml = ["pyproject.toml:project.version"]
build_command = "pip install uv && uv build"
[tool.semantic_release.branches.main]
match = "(main)"
prerelease = false
[tool.semantic_release.branches.next]
match = "(next)"
prerelease = true
prerelease_token = "beta"
[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
"revert",
]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
[tool.ruff]
# See rules here: https://beta.ruff.rs/docs/rules/
[tool.ruff.lint]
select = [
"F",
"W",
"B",
"E",
"I",
"N",
"PLC",
"PLE",
# "PLR",
"PLW",
"TRY",
"PTH",
"TID",
"SIM",
"ARG",
"TC",
"RET",
"UP",
"YTT",
"SLF",
"ANN",
"S",
"A",
"COM",
"DTZ",
"C4",
"ISC",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"INP",
"ICN",
"D", # Pydocstyle
]
ignore = [
"S101", # Use of assert detected
"TRY003", # Long messages in exceptions
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D401", # First line should be in imperative mood
"D205", # 1 blank line required between summary line and description
# "COM812", # Missing trailing comma (incompatible with ruff format)
# "ISC001", # Single line concatenation (incompatible with ruff format)
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.format]
line-ending = "lf"
preview = true
[tool.mypy]
python_version = "3.12.7"
# ignore imports from 3rd party libraries where no stubs are available
ignore_missing_imports = true
warn_unused_configs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
# disallow_any_unimported = true
# disallow_any_expr = true
disallow_any_generics = true
# plugins = "sqlalchemy.ext.mypy.plugin" # Needed for SQLAlchemy 1.4 only