aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
blob: 455d0ae2a63e77c35f58ab573e423c65506df800 (plain) (blame)
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
[tool.poetry]
name = "metricity"
version = "2.6.0"
description = "Advanced metric collection for the Python Discord server"
authors = ["Joe Banks <[email protected]>"]
license = "MIT"

[tool.poetry.dependencies]
python = "3.12.*"

# See https://bot-core.pythondiscord.com/ for docs.
pydis-core = "11.1.0"

alembic = "1.13.1"
coloredlogs = "15.0.1"
deepmerge = "1.1.1"
sqlalchemy = { extras = ["asyncio"], version = "2.0.30" }
python-dotenv = "1.0.1"
asyncpg = "0.29.0"

[tool.poetry.dev-dependencies]
pre-commit = "3.7.1"
ruff = "0.4.8"

[tool.poetry.scripts]
start = "metricity.__main__:start"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

[tool.ruff]
target-version = "py311"
extend-exclude = [".cache"]
line-length = 120
unsafe-fixes = true
preview = true

[tool.ruff.lint]
select = ["ALL"]
ignore = [
    "ANN002", "ANN003", "ANN101",
    "C901",
    "CPY001",
    "D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D416",
    "EM",
    "PLR0912", "PLR6301",
    "TRY003",
]

[tool.ruff.lint.isort]
order-by-type = false
case-sensitive = true
combine-as-imports = true

[tool.ruff.lint.per-file-ignores]
"metricity/models.py" = ["A003"]
"alembic/*" = ["INP001"]