-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
161 lines (145 loc) · 3.58 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
[tool.poetry]
name = "lootscraper"
version = "1.14.3"
description = "RSS feeds and Telegram bot for free game and loot offers."
authors = ["Eiko Wagenknecht <[email protected]>"]
readme = "README.md"
license = "CC-BY-NC-SA-4.0"
repository = "https://github.com/eikowagenknecht/lootscraper"
include = ["config.default.toml"]
[tool.poetry.scripts]
lootscraper = 'lootscraper.main:main'
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/eikowagenknecht/lootscraper/issues"
[tool.poetry.dependencies]
python = "^3.12.0"
alembic = "^1.14.0"
feedgen = "^1.0.0"
humanize = "^4.11.0"
httpx = "^0.27.0"
python-telegram-bot = { version = "^21.7", extras = ["rate-limiter"] }
playwright = "^1.48.0"
SQLAlchemy = "^2.0.36"
Unidecode = "^1.3.8"
xvfbwrapper = "^0.2.9"
jinja2 = "^3.1.4"
schedule = "^1.2.2"
pytz = "^2024.2"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
# Linting and formatting
ruff = "^0.7.3"
# Type checking
mypy = "^1.13.0"
# Profiling
scalene = "^1.5.47"
# Testing
pytest = "^8.3.3"
# Python standard
setuptools = "^75.4.0"
wheel = "^0.45.0"
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
build_command = "pip install poetry && poetry 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"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[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",
"TCH",
"RET",
"UP",
"YTT",
"SLF",
"ANN",
"S",
"A",
"COM",
"DTZ",
"C4",
"ISC",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"INP",
"ICN",
"D", # Pydocstyle
]
ignore = [
"ANN101", # Missing type annotation for self in method - Not needed with Self type
"ANN102", # Missing type annotation for cls in classmethod - Not needed
"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"
# 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