Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (144 loc) · 4.5 KB
/
Copy pathpyproject.toml
File metadata and controls
163 lines (144 loc) · 4.5 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
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
162
163
[project]
name = "community-insights"
dynamic = ["version"] # from the git tag, by hatch-vcs
description = "Contributor Community Insights: response times, contributors and badges for GitHub projects"
readme = "README.md"
license = "AGPL-3.0-or-later"
license-files = ["LICENSE"]
requires-python = ">=3.13"
dependencies = [
"Django>=5.2,<6",
"django-allauth[socialaccount]>=65",
"gunicorn>=23",
"matplotlib>=3.9",
"requests>=2.32",
"whitenoise>=6.9",
"scipy>=1.18.1",
"django-environ>=0.14.0",
"django-health-check>=4.8.0",
"django-fernet-encrypted-fields>=0.4.0",
"django-ordered-model>=3.7.4",
"django-tables2>=3.0.1",
"django-filter>=26.2",
"django-tz-detect>=0.5.0",
"django-cachalot>=2.9.1",
"django-bootstrap5>=26.4",
"psycopg[binary]>=3.3.6",
"odfpy>=1.4.1",
"geonamescache>=2.0",
"pandas>=2.3.3",
"pyarrow>=26.0.0",
"lifelines>=0.30.3",
"statsmodels>=0.15.0",
"gql>=4.4.0",
"django-htmx>=1.29.0",
"pip-licenses>=5.5.5",
"django-ratelimit>=4.1.0",
"anybadge>=1.16.0",
"aiolimiter>=1.2",
"httpx>=0.28.1",
"pillow>=11",
"babel>=2.18",
]
[build-system]
# pip install .[docs] on Read the Docs builds the package
requires = ["hatchling==1.27.0", "hatch-vcs==0.5.0"]
build-backend = "hatchling.build"
[tool.hatch.version]
# the version is the git tag (v1.2.3); between releases 1.2.4.devN+gHASH
source = "vcs"
# without git, such as in an archive of the code
raw-options = { fallback_version = "0.0.0" }
[tool.hatch.build.targets.wheel]
packages = ["community_insights"]
[tool.uv]
package = false # uv sync installs the dependencies only; the code runs from the checkout
[project.urls]
Documentation = "https://community-insights.readthedocs.io/en/latest/"
Source = "https://github.com/PyCalendar/community-insights"
Changelog = "https://community-insights.readthedocs.io/en/latest/changelog.html"
[project.optional-dependencies]
docs = [
"sphinx==9.1.0",
"pydata-sphinx-theme==0.23.0",
"sphinx-autobuild==2025.8.25",
"sphinx-copybutton==0.5.2",
"sphinx-design==0.7.0",
"sphinx-issues==6.0.0",
"sphinx-last-updated-by-git==0.3.8",
"sphinx-notfound-page==1.1.0",
"sphinxcontrib-mermaid==2.1.1",
"towncrier==26.9.0",
]
[dependency-groups]
dev = [
"django-debug-toolbar>=8.0.0",
"django-types>=0.24.0",
"factory-boy>=3.3.3",
"polib>=1.2.0",
"pre-commit",
"pyright>=1.1.414",
"pytest",
"pytest-cov",
"pytest-django",
"pytest-playwright>=0.10.0",
"respx>=0.23.1",
"ruff==0.16.10",
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "community_insights.settings"
pythonpath = ["."]
testpaths = ["tests"]
filterwarnings = ["ignore:No directory at:UserWarning"] # staticfiles/ is made by collectstatic
markers = [
"performance: measures speed; run with make test-performance",
"network: may use the network (reads GitHub with a real token)",
"browser: in Firefox with Playwright; run with make test-browser",
]
addopts = "-m 'not performance and not browser'"
[tool.ruff]
line-length = 100
extend-exclude = [".claude", "community_insights/migrations", "static/vendor", "calendaring-sync", "docs/_build"]
[tool.ruff.lint]
# D: every class and function has a docstring, in Google style
select = ["E", "F", "I", "UP", "D"]
ignore = ["D100", "D104", "D105", "D106", "D107"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.towncrier]
directory = "news/"
filename = "docs/changelog.rst"
issue_format = "`#{issue} <https://github.com/PyCalendar/community-insights/issues/{issue}>`_"
start_string = ".. towncrier release notes start\n"
title_format = "{version} ({project_date})"
underlines = ["-", "~", "`"]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "New features"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "documentation"
name = "Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Maintenance"
showcontent = true
[tool.ruff.lint.per-file-ignores]
"community_insights/badges.py" = ["E501"] # the SVG template
"tests/**" = ["D"] # docstrings of the tests: see todo.txt
[tool.pyright]
# type checking like icalendar: `make typecheck`; Django's types from django-types
include = ["community_insights"]
exclude = ["**/migrations", "**/__pycache__"]
typeCheckingMode = "standard"
pythonVersion = "3.13"
reportMissingTypeStubs = false