Skip to content

Commit

Permalink
MAINT: update lock files (#442)
Browse files Browse the repository at this point in the history
* DX: outsource cron job to pre-commit.ci
* DX: set `PYTHONHASHSEED=0`
* DX: switch to Python 3.12 in developer environment
* FIX: ignore https://doi.org/10.1093
* MAINT: sort `check-dev-files` arguments

---------

Co-authored-by: GitHub <noreply@github.com>
  • Loading branch information
redeboer and web-flow authored Nov 7, 2024
1 parent 8cfff67 commit 23cef79
Show file tree
Hide file tree
Showing 9 changed files with 167 additions and 166 deletions.
2 changes: 1 addition & 1 deletion .binder/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.11
python-3.12
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
uv sync --all-extras --quiet
source .venv/bin/activate

export PYTHONHASHSEED=0
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
id-token: write
with:
apt-packages: graphviz
python-version: "3.11"
specific-pip-packages: ${{ inputs.specific-pip-packages }}
pytest:
uses: ComPWA/actions/.github/workflows/pytest.yml@v2.1
Expand All @@ -47,5 +46,3 @@ jobs:
secrets:
token: ${{ secrets.PAT }}
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v2.1
with:
python-version: "3.11"
2 changes: 0 additions & 2 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ on:
paths:
- .pre-commit-config.yaml
- uv.lock
schedule:
- cron: "0 3 7 */1 *"
workflow_dispatch:

jobs:
Expand Down
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.5.5
rev: 0.5.6
hooks:
- id: check-dev-files
args:
- --doc-apt-packages=graphviz
- --dev-python-version=3.11
- --update-lock-files=monthly
- --environment-variables=PYTHONHASHSEED=0
- --repo-name=ampform
- --repo-title=AmpForm
- --update-lock-files=outsource
- id: colab-toc-visible
- id: fix-nbformat-version
- id: remove-empty-tags
Expand All @@ -33,7 +33,7 @@ repos:
- --extras-require=doc,viz

- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
rev: 0.8.0
hooks:
- id: nbstripout
args:
Expand Down Expand Up @@ -61,7 +61,7 @@ repos:
metadata.vscode
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
rev: v0.7.2
hooks:
- id: ruff
args: [--fix]
Expand Down Expand Up @@ -128,7 +128,7 @@ repos:
pass_filenames: false

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.15.2
rev: v8.15.3
hooks:
- id: cspell

Expand All @@ -154,11 +154,11 @@ repos:
- python

- repo: https://github.com/ComPWA/pyright-pre-commit
rev: v1.1.386
rev: v1.1.388
hooks:
- id: pyright

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.27
rev: 0.4.30
hooks:
- id: uv-lock
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11
3.12
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-24.04
tools:
python: "3.11"
python: "3.12"
commands:
- |-
export PIXI_HOME=$READTHEDOCS_VIRTUALENV_PATH
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def _get_dataclasses(module):
linkcheck_ignore = [
"http://www.curtismeyer.com",
"https://doi.org/10.1002", # 403 for onlinelibrary.wiley.com
"https://doi.org/10.1093", # 403 for PTEP
"https://doi.org/10.1103", # 403 for Phys Rev D
"https://doi.org/10.1155", # 403 for hindawi.com
"https://home.fnal.gov/~kutschke/Angdist/angdist.ps",
Expand Down
303 changes: 153 additions & 150 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit 23cef79

Please sign in to comment.