-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
67 lines (60 loc) · 1.56 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
[tool.poetry]
name = "hetznerbot"
version = "1.0.0"
description = "A bot for finding the best offers from hetzner"
authors = ["Arne Beer <contact@arne.beer>"]
license = "MIT"
repository = "https://github.com/nukesor/hetznerbot"
package-mode = false
[tool.poetry.dependencies]
python = ">=3.11, <4"
alembic = "^1"
dateparser = "^1"
prettytable = "^3.12.0"
psycopg2-binary = "^2"
python-telegram-bot = { extras = ["job-queue", "webhooks"], version = "^21.8" }
requests = "^2"
sentry-sdk = "^2"
SQLAlchemy = "^2"
sqlalchemy-utils = "^0.41"
toml = "^0.10"
typer = "^0.15"
[tool.poetry.dev-dependencies]
ruff = "^0.8"
types-toml = "^0.10.8"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
# Check the Ruff documentation for more info on how to configure this
# General docs: https://docs.astral.sh/ruff/configuration/
# Explicit docs for individual settings: https://docs.astral.sh/ruff/settings/
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py311"
exclude = [".venv", "__init__.py"]
[tool.ruff.lint]
select = [
"E", # Pycodestyle
"F", # Pyflakes
"I", # Isort
"UP", # Language feature updates
"RUF", # Ruff Rules
]
fixable = [
"E",
"F",
"I",
"UP", # Language feature updates
"RUF", # Ruff Rules
]
# 4. Ignore `E402` (import violations) in all `__init__.py` and misc files.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"