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 #230

Merged
merged 17 commits into from
Jan 13, 2025
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
81 changes: 41 additions & 40 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"version": "0.2",
"enableFiletypes": [
"git-commit",
"github-actions-workflow",
Expand Down Expand Up @@ -29,50 +28,12 @@
".pre-commit-config.yaml",
".prettierignore",
".readthedocs.yml",
".taplo.toml",
".vscode/*",
"codecov.yml",
"docs/conf.py",
"pyproject.toml"
],
"language": "en-US",
"words": [
"ampform",
"besiii",
"blazingly",
"breit",
"brookhaven",
"checkmark",
"chromodynamics",
"clebsch",
"conda",
"Cuda",
"dalitz",
"docstrings",
"doctests",
"doxygen",
"flatt",
"flatté",
"glueball",
"glueballs",
"gordan",
"helicities",
"helicity",
"hypercharge",
"isospin",
"JPAC",
"jupyter",
"matplotlib",
"mypy",
"numpy",
"pseudoscalar",
"PyPA",
"PYTHONHASHSEED",
"qrules",
"sympy",
"unitarity",
"unstaged",
"zemach"
],
"ignoreWords": [
"Badalian",
"Colab",
Expand Down Expand Up @@ -155,5 +116,45 @@
"xlim",
"ylabel",
"ylim"
],
"language": "en-US",
"useGitignore": true,
"version": "0.2",
"words": [
"ampform",
"besiii",
"blazingly",
"breit",
"brookhaven",
"checkmark",
"chromodynamics",
"clebsch",
"conda",
"Cuda",
"dalitz",
"docstrings",
"doctests",
"doxygen",
"flatt",
"flatté",
"glueball",
"glueballs",
"gordan",
"helicities",
"helicity",
"hypercharge",
"isospin",
"JPAC",
"jupyter",
"matplotlib",
"mypy",
"numpy",
"pseudoscalar",
"PyPA",
"qrules",
"sympy",
"unitarity",
"unstaged",
"zemach"
]
}
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ concurrency:
cancel-in-progress: |-
${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}

env:
PYTHONHASHSEED: "0"

on:
push:
branches:
Expand Down Expand Up @@ -40,6 +37,8 @@ jobs:
coverage-target: pwa_pages
skipped-python-versions: all
specific-pip-packages: ${{ inputs.specific-pip-packages }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
style:
if: inputs.specific-pip-packages == ''
secrets:
Expand Down
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.5.5
rev: 0.5.15
hooks:
- id: check-dev-files
args:
Expand All @@ -31,7 +31,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 @@ -59,7 +59,7 @@ repos:
metadata.vscode

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
rev: v0.9.1
hooks:
- id: ruff
args: [--fix]
Expand Down Expand Up @@ -92,7 +92,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 @@ -102,14 +102,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/sirosen/check-jsonschema
rev: 0.29.4
rev: 0.31.0
hooks:
- id: check-jsonschema
name: Check project inventory YAML files
Expand All @@ -119,7 +119,7 @@ repos:
args: ["--schemafile", "./docs/software/project-inventory-schema.json"]

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

Expand All @@ -145,7 +145,7 @@ repos:
- python

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

Expand All @@ -159,6 +159,6 @@ repos:
files: (docs/software/.*\.json|src/pwa_pages/project_inventory.py)

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.28
rev: 0.5.18
hooks:
- id: uv-lock
4 changes: 3 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ build:
export UV_LINK_MODE=copy
uv run \
--group doc \
--locked \
--no-dev \
--with tox \
tox -e doc
mkdir -p $READTHEDOCS_OUTPUT
mv docs/_build/html $READTHEDOCS_OUTPUT

sphinx:
configuration: docs/conf.py
7 changes: 7 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ compact_inline_tables = true
indent_string = " "
reorder_arrays = true
reorder_keys = true

[[rule]]
include = ["**/pyproject.toml"]
keys = ["tool.tox"]

[rule.formatting]
reorder_arrays = false
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"ms-python.mypy-type-checker",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-toolsai.jupyter",
"ms-toolsai.vscode-jupyter-cell-tags",
"ms-vscode.live-server",
"ms-vsliveshare.vsliveshare",
"redhat.vscode-yaml",
Expand All @@ -30,6 +32,7 @@
"ms-python.flake8",
"ms-python.isort",
"ms-python.pylint",
"ms-toolsai.vscode-jupyter-slideshow",
"travisillig.vscode-json-stable-stringify",
"tyriar.sort-lines"
]
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git clone https://github.com/ComPWA/PWA-pages
cd PWA-pages
```

Now it's simply a matter of creating and activating the [virtual environment](https://docs.astral.sh/uv/pip/environments) with [`uv sync`](https://docs.astral.sh/uv/reference/cli/#uv-sync). The dependencies for the project are 'pinned' in each commit through the [`uv.lock` file](https://docs.astral.sh/uv/concepts/projects/#project-lockfile).
Now it's simply a matter of creating and activating the [virtual environment](https://docs.astral.sh/uv/pip/environments) with [`uv sync`](https://docs.astral.sh/uv/reference/cli/#uv-sync). The dependencies for the project are 'pinned' in each commit through the [`uv.lock` file](https://docs.astral.sh/uv/concepts/projects/layout/#the-lockfile).

```shell
uv sync --all-extras
Expand Down
14 changes: 2 additions & 12 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,22 @@ coverage:
status:
project:
default:
# basic
target: 85% # can't go below this percentage
threshold: 1% # allow drops by this percentage
target: 85%
threshold: 1%
base: auto
# advanced
branches: null
if_no_uploads: error
if_not_found: success
if_ci_failed: error
only_pulls: false
flags: null
paths: null
patch:
default:
# basic
target: 0
threshold: 5%
base: auto
# advanced
branches: null
if_no_uploads: error
if_not_found: success
if_ci_failed: error
only_pulls: false
flags: null
paths: null
changes: false

parsers:
Expand Down
Loading