From e90620ff4979e5ac973aeee7fa25f7c342f0a52a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 19:55:51 +0100 Subject: [PATCH] MAINT: update lock files (#12) * MAINT: remove `PYTHONHASHSEED` * MAINT: rename `TCH` Ruff rules to `TC` * MAINT: sort cSpell config Co-authored-by: GitHub --- .cspell.json | 3 ++- .github/workflows/ci.yml | 3 --- .pre-commit-config.yaml | 12 ++++++------ .taplo.toml | 7 +++++++ CONTRIBUTING.md | 2 +- pyproject.toml | 2 +- 6 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.cspell.json b/.cspell.json index a0615f1..18a1acb 100644 --- a/.cspell.json +++ b/.cspell.json @@ -25,6 +25,7 @@ ".gitignore", ".pre-commit-config.yaml", ".prettierignore", + ".taplo.toml", ".vscode/*", "pyproject.toml" ], @@ -41,6 +42,7 @@ "venv" ], "language": "en-US", + "useGitignore": true, "version": "0.2", "words": [ "ampform", @@ -54,7 +56,6 @@ "pybtex", "PyPA", "pyproject", - "PYTHONHASHSEED", "SymPy" ] } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79edf73..ffdbca6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 539a9bf..d392849 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,14 +12,14 @@ 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: - --repo-name=sphinx-pybtex-etal-style - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.1 + rev: v0.9.1 hooks: - id: ruff args: [--fix] @@ -47,7 +47,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/ComPWA/prettier-pre-commit - rev: v3.3.3 + rev: v3.4.2 hooks: - id: prettier @@ -57,14 +57,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/streetsidesoftware/cspell-cli - rev: v8.15.2 + rev: v8.17.0 hooks: - id: cspell @@ -89,6 +89,6 @@ repos: - python - repo: https://github.com/ComPWA/pyright-pre-commit - rev: v1.1.386 + rev: v1.1.391 hooks: - id: pyright diff --git a/.taplo.toml b/.taplo.toml index 0db1df7..71fcb1b 100644 --- a/.taplo.toml +++ b/.taplo.toml @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4a6b14c..2309cf3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,7 +12,7 @@ git clone https://github.com/ComPWA/sphinx-pybtex-etal-style cd sphinx-pybtex-etal-style ``` -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 diff --git a/pyproject.toml b/pyproject.toml index a992273..4975795 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -186,7 +186,7 @@ split-on-trailing-comma = false "PLW0603", "S101", "T20", - "TCH00", + "TC00", ] "setup.py" = ["D100"] "tests/*" = [