Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (75 loc) · 1.81 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (75 loc) · 1.81 KB
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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools.package-data]
"argus.dashboard" = ["frontend/**/*"]
"argus.kktix" = ["templates/*.j2"]
[tool.setuptools.dynamic]
version = { attr = "argus.__version__" }
[project]
name = "argus"
description = "KKTIX webhook receiver with daily Discord reports"
readme = "README.md"
requires-python = ">=3.11"
dynamic = ["version"]
dependencies = [
"fastapi",
"uvicorn[standard]",
"apscheduler",
"httpx",
"beautifulsoup4",
"authlib<1.7",
"itsdangerous",
"jinja2",
"psycopg[binary]",
"sqlalchemy",
]
[dependency-groups]
dev = [
"ruff",
"pytest",
"pytest-asyncio",
"pytest-cov",
"commitizen",
"oidc-provider-mock<0.4",
]
[tool.ruff]
output-format = "grouped"
show-fixes = true
[tool.ruff.lint]
select = [
"I", # isort
"N", # pep8-naming
"E", # pycodestyle-error
"W", # pycodestyle-warning
"F", # pyflakes
"UP", # pyupgrade
]
ignore = ["E501"]
[tool.ruff.lint.isort]
from-first = true
lines-after-imports = 2
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.pytest.ini_options]
asyncio_mode = "auto"
filterwarnings = [
# Third-party deprecation: authlib's transitional warning about its own
# jose submodule. Author guarantees compatibility until 2.0.0; nothing for
# us to do until they remove it.
"ignore::authlib.deprecate.AuthlibDeprecationWarning",
]
[tool.commitizen]
name = "cz_conventional_commits"
version_provider = "scm"
version_scheme = "pep440"
version_files = ["src/argus/__init__.py:__version__"]
tag_format = "$version"
update_changelog_on_bump = true
changelog_file = "CHANGELOG.md"
bump_message = "bump: $current_version to $new_version"
breaking_change_exclamation_in_title = true