forked from reef-technologies/django-business-metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
137 lines (118 loc) · 2.99 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
[project]
name = "django-business-metrics"
version = "1.0.2"
description = "Django Prometheus business metrics"
license = {file = "LICENSE"}
readme = "README.md"
authors = [
{name = "Reef Technologies", email = "[email protected]"},
{name = "Vykintas Baltrusaitis", email = "[email protected]"},
]
classifiers = [
"Framework :: Django",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
dependencies = [
"Django>=3",
"prometheus-client>=0.13.0",
]
[project.urls]
"Source" = "https://github.com/reef-technologies/django-business-metrics"
"Issue Tracker" = "https://github.com/reef-technologies/django-business-metrics/issues"
[tool.pdm]
[tool.pdm.dev-dependencies]
test = [
"freezegun",
"mypy>=0.971",
"nox>=2024",
"pytest-django",
"pytest-xdist",
"pytest>=6",
"ruff>=0.4",
]
lint = [
"codespell[toml]",
"django-stubs[compatible-mypy]",
"mypy",
"ruff",
"types-freezegun",
"types-python-dateutil",
"types-requests",
]
release = [
"towncrier",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE="tests.settings"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"D",
"E", "F", "I", "UP",
"TCH005",
]
ignore = [
"D100", "D105", "D107", "D200", "D202", "D203", "D205", "D212", "D400", "D401", "D415",
"D101", "D102", "D103", "D104", # TODO remove once we have docstring for all public methods
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"test/**" = ["D", "F403", "F405"]
[tool.codespell]
skip = "*.min.js,pdm.lock"
ignore-words-list = "datas"
[tool.towncrier]
directory = "changelog.d"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
title_format = "## [{version}](https://github.com/reef-technologies/django-business-metrics/releases/tag/v{version}) - {project_date}"
issue_format = "[#{issue}](https://github.com/reef-technologies/django-business-metrics/issues/{issue})"
[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecated"
name = "Deprecated"
showcontent = true
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Doc"
showcontent = true
[[tool.towncrier.type]]
directory = "infrastructure"
name = "Infrastructure"
showcontent = true
[tool.bandit]
include = ["django_business_metrics"]
exclude_dirs = ["tests"]
[tool.mypy]
[[tool.mypy.overrides]]
module = [
"nox",
"pytest",
]
ignore_missing_imports = true