Skip to content

Commit df258a2

Browse files
committed
Merge branch 'main' into download-prof-files
2 parents cfc244b + 637417b commit df258a2

101 files changed

Lines changed: 9495 additions & 909 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,17 @@ updates:
1313
interval: weekly
1414
cooldown:
1515
default-days: 7
16+
- package-ecosystem: npm
17+
directory: /
18+
schedule:
19+
interval: weekly
20+
cooldown:
21+
default-days: 7
22+
groups:
23+
minor-npm-dependencies:
24+
update-types:
25+
- "minor"
26+
- "patch"
27+
major-npm-dependencies:
28+
update-types:
29+
- "major"

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
# DO NOT run actions/checkout here, for security reasons
2828
# For details, refer to https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
2929
- name: Post comment
30-
uses: py-cov-action/python-coverage-comment-action@e623398c19eb3853a5572d4a516e10b15b5cefbc # v3.39
30+
uses: py-cov-action/python-coverage-comment-action@63f52f4fbbffada6e8dee8ec432de7e01df9ba79 # v3.41
3131
with:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
GITHUB_PR_RUN_ID: ${{ github.event.workflow_run.id }}

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919
with:
2020
persist-credentials: false
2121
- name: Set up Python
22-
uses: actions/setup-python@v6
22+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2323
with:
2424
python-version: "3.x"
2525
- name: Install pypa/build
@@ -28,7 +28,7 @@ jobs:
2828
- name: Build a binary wheel and a source tarball
2929
run: python3 -m build
3030
- name: Store the distribution packages
31-
uses: actions/upload-artifact@v5
31+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
3232
with:
3333
name: python-package-distributions
3434
path: dist/
@@ -47,12 +47,12 @@ jobs:
4747
id-token: write # IMPORTANT: mandatory for trusted publishing
4848
steps:
4949
- name: Download all the dists
50-
uses: actions/download-artifact@v6
50+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5151
with:
5252
name: python-package-distributions
5353
path: dist/
5454
- name: Publish distribution 📦 to PyPI
55-
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1.13
55+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1.13
5656

5757
github-release:
5858
name: >-
@@ -68,12 +68,12 @@ jobs:
6868

6969
steps:
7070
- name: Download all the dists
71-
uses: actions/download-artifact@v6
71+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
7272
with:
7373
name: python-package-distributions
7474
path: dist/
7575
- name: Sign the dists with Sigstore
76-
uses: sigstore/gh-action-sigstore-python@f832326173235dcb00dd5d92cd3f353de3188e6c # v3.1.0
76+
uses: sigstore/gh-action-sigstore-python@04cffa1d795717b140764e8b640de88853c92acc # v3.3.0
7777
with:
7878
inputs: >-
7979
./dist/*.tar.gz
@@ -113,12 +113,12 @@ jobs:
113113

114114
steps:
115115
- name: Download all the dists
116-
uses: actions/download-artifact@v6
116+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
117117
with:
118118
name: python-package-distributions
119119
path: dist/
120120
- name: Publish distribution 📦 to TestPyPI
121-
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1.13
121+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1.13
122122
with:
123123
repository-url: https://test.pypi.org/legacy/
124124
skip-existing: true

.github/workflows/test.yml

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,25 @@ permissions:
1919
contents: read
2020

2121
jobs:
22+
vitest:
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
pull-requests: write
27+
steps:
28+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29+
with:
30+
persist-credentials: false
31+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
32+
with:
33+
node-version-file: package.json
34+
cache: npm
35+
cache-dependency-path: package-lock.json
36+
- name: Install Node dependencies
37+
run: npm ci
38+
- run: npm test
39+
- uses: davelosert/vitest-coverage-report-action@3c50566c523e04813df28de8f7c48dd97d663f1c # v2.11.2
40+
2241
mysql:
2342
runs-on: ubuntu-latest
2443
strategy:
@@ -41,12 +60,12 @@ jobs:
4160
- 3306:3306
4261

4362
steps:
44-
- uses: actions/checkout@v5
63+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4564
with:
4665
persist-credentials: false
4766

4867
- name: Set up Python ${{ matrix.python-version }}
49-
uses: actions/setup-python@v6
68+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5069
with:
5170
python-version: ${{ matrix.python-version }}
5271
allow-prereleases: true
@@ -57,7 +76,7 @@ jobs:
5776
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
5877
5978
- name: Cache
60-
uses: actions/cache@v4
79+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
6180
with:
6281
path: ${{ steps.pip-cache.outputs.dir }}
6382
key:
@@ -82,7 +101,7 @@ jobs:
82101
COVERAGE_FILE: ".coverage.mysql.${{ matrix.python-version }}"
83102

84103
- name: Store coverage file
85-
uses: actions/upload-artifact@v5
104+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
86105
with:
87106
name: coverage-mysql-${{ matrix.python-version }}
88107
path: .coverage.mysql.${{ matrix.python-version }}*
@@ -137,12 +156,12 @@ jobs:
137156
--health-retries 5
138157
139158
steps:
140-
- uses: actions/checkout@v5
159+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
141160
with:
142161
persist-credentials: false
143162

144163
- name: Set up Python ${{ matrix.python-version }}
145-
uses: actions/setup-python@v6
164+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
146165
with:
147166
python-version: ${{ matrix.python-version }}
148167
allow-prereleases: true
@@ -153,7 +172,7 @@ jobs:
153172
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
154173
155174
- name: Cache
156-
uses: actions/cache@v4
175+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
157176
with:
158177
path: ${{ steps.pip-cache.outputs.dir }}
159178
key:
@@ -182,7 +201,7 @@ jobs:
182201
COVERAGE_FILE: ".coverage.${{ matrix.database }}.${{ matrix.python-version }}"
183202

184203
- name: Store coverage file
185-
uses: actions/upload-artifact@v5
204+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
186205
with:
187206
name: coverage-${{ matrix.database }}-${{ matrix.python-version }}
188207
path: .coverage.${{ matrix.database }}.${{ matrix.python-version }}*
@@ -197,12 +216,12 @@ jobs:
197216
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
198217

199218
steps:
200-
- uses: actions/checkout@v5
219+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
201220
with:
202221
persist-credentials: false
203222

204223
- name: Set up Python ${{ matrix.python-version }}
205-
uses: actions/setup-python@v6
224+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
206225
with:
207226
python-version: ${{ matrix.python-version }}
208227
allow-prereleases: true
@@ -213,7 +232,7 @@ jobs:
213232
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
214233
215234
- name: Cache
216-
uses: actions/cache@v4
235+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
217236
with:
218237
path: ${{ steps.pip-cache.outputs.dir }}
219238
key:
@@ -235,7 +254,7 @@ jobs:
235254
COVERAGE_FILE: ".coverage.sqlite.${{ matrix.python-version }}"
236255

237256
- name: Store coverage file
238-
uses: actions/upload-artifact@v5
257+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
239258
with:
240259
name: coverage-sqlite-${{ matrix.python-version }}
241260
path: .coverage.sqlite.${{ matrix.python-version }}*
@@ -247,12 +266,12 @@ jobs:
247266
fail-fast: false
248267

249268
steps:
250-
- uses: actions/checkout@v5
269+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
251270
with:
252271
persist-credentials: false
253272

254273
- name: Set up Python ${{ matrix.python-version }}
255-
uses: actions/setup-python@v6
274+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
256275
with:
257276
python-version: '3.10'
258277

@@ -262,7 +281,7 @@ jobs:
262281
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
263282
264283
- name: Cache
265-
uses: actions/cache@v4
284+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
266285
with:
267286
path: ${{ steps.pip-cache.outputs.dir }}
268287
key:
@@ -290,26 +309,26 @@ jobs:
290309
pull-requests: write
291310
contents: write
292311
steps:
293-
- uses: actions/checkout@v4
312+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
294313
with:
295314
# Persist the credentials because coverage_comment needs them too.
296315
persist-credentials: true
297316

298-
- uses: actions/download-artifact@v6
317+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
299318
id: download
300319
with:
301320
pattern: coverage-*
302321
merge-multiple: true
303322

304323
- name: Coverage comment
305324
id: coverage_comment
306-
uses: py-cov-action/python-coverage-comment-action@e623398c19eb3853a5572d4a516e10b15b5cefbc # v3.39
325+
uses: py-cov-action/python-coverage-comment-action@63f52f4fbbffada6e8dee8ec432de7e01df9ba79 # v3.41
307326
with:
308327
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
309328
MERGE_COVERAGE_FILES: true
310329

311330
- name: Store Pull Request comment to be posted
312-
uses: actions/upload-artifact@v5
331+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
313332
if: steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true'
314333
with:
315334
name: python-coverage-comment-action

.github/workflows/zizmor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
actions: read # only needed for private repos
1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
persist-credentials: false
2424

2525
- name: Run zizmor 🌈
26-
uses: zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0
26+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ venv
1717
.envrc
1818
.venv
1919
.vscode
20+
21+
# Node
22+
node_modules/
23+
coverage/

.pre-commit-config.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
exclude: "package.json|package-lock.json"
12
repos:
23
- repo: https://github.com/pre-commit/pre-commit-hooks
34
rev: v6.0.0
@@ -14,36 +15,40 @@ repos:
1415
hooks:
1516
- id: doc8
1617
- repo: https://github.com/adamchainz/django-upgrade
17-
rev: 1.29.1
18+
rev: 1.30.0
1819
hooks:
1920
- id: django-upgrade
20-
args: [--target-version, "4.2"]
21+
args: [--target-version, "5.2"]
22+
- repo: https://github.com/codingjoe/esupgrade
23+
rev: 2025.15.0
24+
hooks:
25+
- id: esupgrade
2126
- repo: https://github.com/adamchainz/djade-pre-commit
22-
rev: "1.7.0"
27+
rev: "1.9.0"
2328
hooks:
2429
- id: djade
25-
args: [--target-version, "4.2"]
30+
args: [--target-version, "5.2"]
2631
- repo: https://github.com/pre-commit/pygrep-hooks
2732
rev: v1.10.0
2833
hooks:
2934
- id: rst-backticks
3035
- id: rst-directive-colons
3136
- repo: https://github.com/biomejs/pre-commit
32-
rev: v2.3.10
37+
rev: v2.4.13
3338
hooks:
3439
- id: biome-check
3540
verbose: true
3641
- repo: https://github.com/astral-sh/ruff-pre-commit
37-
rev: 'v0.14.11'
42+
rev: 'v0.15.12'
3843
hooks:
3944
- id: ruff
4045
args: [--fix, --exit-non-zero-on-fix]
4146
- id: ruff-format
4247
- repo: https://github.com/tox-dev/pyproject-fmt
43-
rev: v2.11.1
48+
rev: v2.21.1
4449
hooks:
4550
- id: pyproject-fmt
4651
- repo: https://github.com/abravalheri/validate-pyproject
47-
rev: v0.24.1
52+
rev: v0.25
4853
hooks:
4954
- id: validate-pyproject

.readthedocs.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ version: 2
77
build:
88
os: ubuntu-24.04
99
tools:
10-
python: "3.10"
10+
python: "3.13"
11+
jobs:
12+
install:
13+
- pip install -U pip
14+
- pip install --group docs
1115

1216
sphinx:
1317
configuration: docs/conf.py
14-
15-
python:
16-
install:
17-
- requirements: requirements_dev.txt
18-
- method: pip
19-
path: .

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Here's a screenshot of the toolbar in action:
4040
In addition to the built-in panels, a number of third-party panels are
4141
contributed by the community.
4242

43-
The current stable version of the Debug Toolbar is 6.2.0. It works on
44-
Django ≥ 4.2.0.
43+
The current stable version of the Debug Toolbar is 6.3.0. It works on
44+
Django ≥ 5.2.0.
4545

4646
The Debug Toolbar has experimental support for `Django's asynchronous views
4747
<https://docs.djangoproject.com/en/dev/topics/async/>`_. Please note that

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.13/schema.json",
33
"formatter": {
44
"enabled": true,
55
"useEditorconfig": true

0 commit comments

Comments
 (0)