Skip to content

Commit

Permalink
MAINT: update lock files (#230)
Browse files Browse the repository at this point in the history
* DX: convert Tox config to native TOML
* FIX: set `CODECOV_TOKEN`
* FIX: set `sphinx.configuration`
* MAINT: clean up Codecov config
* MAINT: remove `PYTHONHASHSEED`
* MAINT: sort cSpell config

Co-authored-by: GitHub <noreply@github.com>
  • Loading branch information
pre-commit-ci[bot] and web-flow authored Jan 13, 2025
1 parent c081f0d commit 56b7c19
Show file tree
Hide file tree
Showing 13 changed files with 912 additions and 858 deletions.
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

0 comments on commit 56b7c19

Please sign in to comment.