Skip to content
Open
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
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"*.ico",
".editorconfig",
".envrc",
".gitattributes",
".github/dependabot.yml",
".gitignore",
".pre-commit-config.yaml",
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
jobs:
milestone:
if: startsWith(github.ref, 'refs/tags')
uses: ComPWA/actions/.github/workflows/close-milestone.yml@eadda724984c78a55a6acb4dcdbb2167fb5eba03 # v4.2.1
uses: ComPWA/actions/.github/workflows/close-milestone.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
package-name:
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@eadda724984c78a55a6acb4dcdbb2167fb5eba03 # v4.2.1
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
pypi:
environment:
name: PyPI
Expand All @@ -24,10 +24,10 @@ jobs:
id-token: write
runs-on: ubuntu-26.04
steps:
- uses: ComPWA/actions/build-pypi-distribution@eadda724984c78a55a6acb4dcdbb2167fb5eba03 # v4.2.1
- uses: ComPWA/actions/build-pypi-distribution@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
push:
if: startsWith(github.ref, 'refs/tags') && !github.event.release.prerelease
permissions:
contents: write
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@eadda724984c78a55a6acb4dcdbb2167fb5eba03 # v4.2.1
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:

jobs:
doc:
uses: ComPWA/actions/.github/workflows/ci-docs.yml@eadda724984c78a55a6acb4dcdbb2167fb5eba03 # v4.2.1
uses: ComPWA/actions/.github/workflows/ci-docs.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
permissions:
pages: write
id-token: write
Expand All @@ -30,11 +30,11 @@ jobs:
style:
secrets:
token: ${{ secrets.PAT }}
uses: ComPWA/actions/.github/workflows/style.yml@eadda724984c78a55a6acb4dcdbb2167fb5eba03 # v4.2.1
uses: ComPWA/actions/.github/workflows/style.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
with:
python-version: "3.13"
test:
uses: ComPWA/actions/.github/workflows/test.yml@eadda724984c78a55a6acb4dcdbb2167fb5eba03 # v4.2.1
uses: ComPWA/actions/.github/workflows/test.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
with:
coverage-python-version: "3.13"
macos-python-version: "3.11"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clean-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Remove caches
runs-on: ubuntu-slim
steps:
- uses: ComPWA/actions/clean-caches@eadda724984c78a55a6acb4dcdbb2167fb5eba03 # v4.2.1
- uses: ComPWA/actions/clean-caches@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.ref }}
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ on:

jobs:
lock:
uses: ComPWA/actions/.github/workflows/lock.yml@eadda724984c78a55a6acb4dcdbb2167fb5eba03 # v4.2.1
uses: ComPWA/actions/.github/workflows/lock.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
secrets:
token: ${{ secrets.PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/pr-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ on:

jobs:
lint-pr:
uses: ComPWA/actions/.github/workflows/pr-linting.yml@eadda724984c78a55a6acb4dcdbb2167fb5eba03 # v4.2.1
uses: ComPWA/actions/.github/workflows/pr-linting.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
update_release_draft:
runs-on: ubuntu-slim
steps:
- uses: release-drafter/release-drafter@978bb0b30c5ee8cdd332ced253758157150d43f0 # v7.10.0
- uses: release-drafter/release-drafter@d1a19e60e81a7e650d00a7de9277f87e439117ea # v7.11.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.10.7
rev: 0.10.8
hooks:
- id: check-dev-files

- repo: https://github.com/kynan/nbstripout
rev: 0.9.1
rev: 0.9.2
hooks:
- id: nbstripout
args:
Expand Down Expand Up @@ -60,7 +60,7 @@ repos:
- id: strip-nb-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.4
rev: v0.17.5
hooks:
- id: ruff-check
args: [--fix]
Expand Down Expand Up @@ -94,14 +94,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v1.11.2
rev: v1.11.3
hooks:
- id: tombi-format
- id: tombi-lint
args: [--error-on-warnings]

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

Expand All @@ -119,7 +119,7 @@ repos:
pass_filenames: false

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v10.4.0
rev: v10.4.1
hooks:
- id: cspell

Expand All @@ -140,12 +140,12 @@ repos:
)$

- repo: https://github.com/astral-sh/ty-pre-commit
rev: v0.0.101
rev: v0.0.105
hooks:
- id: ty
args: [--group=types, --no-default-groups]

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.13.7
rev: 0.13.9
hooks:
- id: uv-lock
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ key-empty = "off"

[[tool.tombi.schemas]]
root = "tool.compwa.policy"
path = "https://raw.githubusercontent.com/ComPWA/policy/0.10.7/compwa-policy.schema.json"
path = "https://raw.githubusercontent.com/ComPWA/policy/0.10.8/compwa-policy.schema.json"
include = ["pyproject.toml"]

[[tool.ty.overrides]]
Expand Down
6 changes: 3 additions & 3 deletions src/tensorwaves/function/sympy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def extract_constant_sub_expressions(
for expr, symbol in substitutions.items()
if symbol in _get_free_symbols(top_expression)
}
return top_expression, sub_expressions # ty:ignore[invalid-return-type]
return top_expression, sub_expressions # ty:ignore[invalid-explicit-return]


def prepare_caching(
Expand Down Expand Up @@ -526,7 +526,7 @@ def prepare_caching(
undefined_variables.update(variables - _get_free_symbols(sub_expr))
for symbol in undefined_variables:
transformer_expressions[symbol] = symbol # ruff:ignore[manual-dict-comprehension]
return cache_expression, transformer_expressions # ty:ignore[invalid-return-type]
return cache_expression, transformer_expressions # ty:ignore[invalid-explicit-return]


def split_expression(
Expand Down Expand Up @@ -572,7 +572,7 @@ def recursive_split(sub_expression: sp.Basic) -> sp.Expr:
else:
new_arg = recursive_split(arg)
sub_expression = sub_expression.xreplace({arg: new_arg})
return sub_expression # ty:ignore[invalid-return-type]
return sub_expression # ty:ignore[invalid-explicit-return]

top_expression = recursive_split(expression)
free_symbols = _get_free_symbols(top_expression)
Expand Down
4 changes: 2 additions & 2 deletions tests/data/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def it_reproduces_the_phase_space_for_a_flat_intensity():
def describe_generate_without_progress_bar():
class SilentGenerator(DataGenerator):
def generate(self, size: int, rng: RealNumberGenerator) -> DataSample:
return {"x": 1} # ty:ignore[invalid-return-type]
return {"x": 1} # ty:ignore[invalid-explicit-return]

class GeneratorWithProgressBar(DataGenerator):
def __init__(self, show_progress: bool) -> None:
Expand All @@ -113,7 +113,7 @@ def generate(self, size: int, rng: RealNumberGenerator) -> DataSample:
for _ in range(5):
progress_bar.update()
finalize_progress_bar(progress_bar)
return {"x": 1} # ty:ignore[invalid-return-type]
return {"x": 1} # ty:ignore[invalid-explicit-return]

def it_hides_a_progress_bar_that_would_otherwise_be_shown(
capsys: CaptureFixture,
Expand Down
Loading
Loading