Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: update lock files #36

Merged
merged 7 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/amptools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ jobs:
- macos-14
- ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Install ROOT (macOS)
if: matrix.os == 'macos-14'
Expand Down Expand Up @@ -80,9 +81,7 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- uses: astral-sh/setup-uv@v5
- name: Run executables
run: |
./print_amplitudes -c zlm.cfg > .print_amplitudes.log
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
- uses: astral-sh/setup-uv@v3
with:
enable-cache: True
- uses: astral-sh/setup-uv@v5
- run: >-
uv run --extra doc \
jupyter book build docs --warningiserror
Expand Down
16 changes: 9 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ci:
autoupdate_commit_msg: "MAINT: update lock files"
autoupdate_schedule: quarterly
skip:
- uv-lock

repos:
- repo: meta
Expand All @@ -9,7 +11,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.5.5
rev: 0.5.8
hooks:
- id: colab-toc-visible
- id: check-dev-files
Expand All @@ -21,7 +23,7 @@ repos:
- id: remove-empty-tags

- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
rev: 0.8.1
hooks:
- id: nbstripout
args:
Expand Down Expand Up @@ -49,7 +51,7 @@ repos:
metadata.vscode

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
rev: v0.8.4
hooks:
- id: ruff
args: [--fix]
Expand All @@ -75,7 +77,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/ComPWA/prettier-pre-commit
rev: v3.3.3
rev: v3.4.2
hooks:
- id: prettier

Expand All @@ -85,14 +87,14 @@ repos:
- id: taplo-format

- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
rev: v0.24.2
hooks:
- id: toml-sort
args:
- --in-place

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.2
rev: v19.1.5
hooks:
- id: clang-format
types_or:
Expand All @@ -119,6 +121,6 @@ repos:
- "-y=defaultIndent: ' '"

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.27
rev: 0.5.11
hooks:
- id: uv-lock
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"ms-python.isort",
"ms-python.mypy-type-checker",
"ms-python.pylint",
"ms-toolsai.vscode-jupyter-slideshow",
"streetsidesoftware.code-spell-checker",
"travisillig.vscode-json-stable-stringify",
"tyriar.sort-lines"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ split-on-trailing-comma = false
"RUF001",
"S101",
"T20",
"TCH00",
"TC00",
]
"**/widget.ipynb" = ["ARG001", "ARG002", "S307"]
"docs/*" = [
Expand Down
2 changes: 1 addition & 1 deletion script/makeComparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
with open(".print_amplitudes.log") as file:
for line in file:
if "INTENSITY =" in line:
line = re.sub(" +", " ", line.rstrip().lstrip()) # noqa: PLW2901
line = re.sub(r" +", " ", line.rstrip().lstrip()) # noqa: PLW2901
intensities.append(float(line.split()[2]))
intensities = np.array(intensities)

Expand Down
612 changes: 315 additions & 297 deletions uv.lock

Large diffs are not rendered by default.