File tree Expand file tree Collapse file tree 7 files changed +1728
-22
lines changed
Expand file tree Collapse file tree 7 files changed +1728
-22
lines changed Original file line number Diff line number Diff line change 11version : 2
22updates :
3+ # ─── Python (pip) ─────────────────────────────
34 - package-ecosystem : " pip"
45 directory : " /"
5- schedule :
6- interval : " daily"
7- time : " 06:00"
8- timezone : " UTC"
9- open-pull-requests-limit : 5
10- labels :
11- - " dependencies"
12- - " pip"
6+ schedule : { interval: "weekly" }
7+ labels : [ "dependencies", "pip" ]
8+ groups : # Group patches & minors from dev-only tools
9+ dev-py :
10+ dependency-type : " development"
11+ update-types : ["minor", "patch"]
12+
13+ # ─── Node (npm) ───────────────────────────────
14+ - package-ecosystem : " npm"
15+ directory : " /"
16+ schedule : { interval: "weekly" }
17+ labels : [ "dependencies", "npm" ]
18+ cooldown : # wait before opening PRs
19+ semver-major-days : 30
20+ semver-minor-days : 7
21+ semver-patch-days : 3
22+ security-updates : true
23+
24+ # ─── GitHub Actions ───────────────────────────
25+ - package-ecosystem : " github-actions"
26+ directory : " /"
27+ schedule : { interval: "weekly" }
28+ labels : [ "dependencies", "gh-actions" ]
Original file line number Diff line number Diff line change @@ -25,27 +25,29 @@ jobs:
2525 uses : actions/setup-python@v5
2626 with :
2727 python-version : ${{ matrix.python-version }}
28+ - name : Locate pip cache
29+ id : pip-cache
30+ shell : bash
31+ run : echo "dir=$(python -m pip cache dir)" >> "$GITHUB_OUTPUT"
2832
2933 - name : Cache pip
3034 uses : actions/cache@v4
3135 with :
32- path : ~/.cache/ pip
36+ path : ${{ steps. pip-cache.outputs.dir }}
3337 key : ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
34- restore-keys : |
35- ${{ runner.os }}-pip-
36-
38+ restore-keys : ${{ runner.os }}-pip-
3739 - name : Install dependencies
3840 run : |
3941 python -m pip install --upgrade pip
40- python -m pip install -e ".[dev]"
42+ python -m pip install ".[dev]"
4143
4244 - name : Run tests
4345 run : pytest
4446
4547 # Run pre-commit only on Python 3.13 + ubuntu.
4648 - name : Run pre-commit hooks
49+ uses : pre-commit/action@v3.0.1
4750 if : ${{ matrix.python-version == '3.13' && matrix.os == 'ubuntu-latest' }}
48- run : pre-commit run --all-files
4951
5052 frontend :
5153 needs : test # Builds Tailwind CSS only if tests pass
Original file line number Diff line number Diff line change @@ -58,11 +58,10 @@ jobs:
5858
5959 - name : Install build backend
6060 run : |
61+ python -m pip install --upgrade pip
62+ python -m pip install build twine
6163 python -m build
62- python -m pip install twine
6364 twine check dist/*
64- ls -R dist/ # List the contents of the dist directory
65-
6665 - name : Upload dist artefact
6766 uses : actions/upload-artifact@v4
6867 with :
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: OSSF Scorecard
22on :
33 branch_protection_rule :
44 schedule :
5- - cron : ' 33 11 * * 2'
5+ - cron : ' 33 11 * * 2' # Every Tuesday at 11:33 AM UTC
66 push :
77 branches : [ main ]
88
Original file line number Diff line number Diff line change @@ -173,9 +173,6 @@ node_modules/
173173# CSS
174174src /static /css /site.css
175175
176- # Lock files
177- package-lock.json
178-
179176# Project specific
180177history.txt
181178cleanup.py
You can’t perform that action at this time.
0 commit comments