Skip to content

Commit

Permalink
MAINT: update lock files (#311)
Browse files Browse the repository at this point in the history
* DX: remove `files.watcherExclude`
* DX: unset `PYTHONHASHSEED`
* MAINT: address PYI066
  https://docs.astral.sh/ruff/rules/bad-version-info-order
* MAINT: sort cSpell config

---------

Co-authored-by: GitHub <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 20, 2024
1 parent ed83e48 commit 63fff63
Show file tree
Hide file tree
Showing 10 changed files with 719 additions and 558 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"ylim"
],
"language": "en-US",
"useGitignore": true,
"version": "0.2",
"words": [
"blatt",
Expand Down
2 changes: 0 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
uv sync --all-extras --quiet
source .venv/bin/activate

export PYTHONHASHSEED=0
3 changes: 0 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
19 changes: 9 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.5.6
rev: 0.5.8
hooks:
- id: check-dev-files
args:
- --doc-apt-packages=graphviz
- --environment-variables=PYTHONHASHSEED=0
- --repo-name=qrules
- --repo-title=QRules
- --update-lock-files=outsource
Expand All @@ -33,7 +32,7 @@ repos:
- --extras-require=doc,viz

- repo: https://github.com/kynan/nbstripout
rev: 0.8.0
rev: 0.8.1
hooks:
- id: nbstripout
args:
Expand Down Expand Up @@ -61,7 +60,7 @@ repos:
metadata.vscode
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
rev: v0.8.4
hooks:
- id: ruff
args: [--fix]
Expand Down Expand Up @@ -93,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 @@ -103,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/python-jsonschema/check-jsonschema
rev: 0.29.4
rev: 0.30.0
hooks:
- id: check-jsonschema
name: Check CITATION.cff
Expand All @@ -123,7 +122,7 @@ repos:
pass_filenames: false

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

Expand All @@ -149,11 +148,11 @@ repos:
- python

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

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.30
rev: 0.5.11
hooks:
- id: uv-lock
2 changes: 2 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,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 Down
6 changes: 0 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@
"coverage-gutters.showLineCoverage": true,
"diffEditor.experimental.showMoves": true,
"editor.formatOnSave": true,
"files.watcherExclude": {
"**/*_cache/**": true,
"**/.eggs/**": true,
"**/.git/**": true,
"**/.tox/**": true
},
"git.rebaseWhenSync": true,
"github-actions.workflows.pinned.workflows": [".github/workflows/ci.yml"],
"gitlens.telemetry.enabled": false,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ split-on-trailing-comma = false
"PLW0603",
"S101",
"T20",
"TCH00",
"TC00",
]
"docs/*" = [
"E402",
Expand Down
3 changes: 1 addition & 2 deletions src/qrules/io/_dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ def _create_graphviz_edge(
self, from_node: str, to_node: str, label: str = ""
) -> str:
style = dict(self.edge_style) # copy
if "label" in style:
del style["label"]
style.pop("label", None)
if label:
style["label"] = label
styling = _create_graphviz_styling(style)
Expand Down
6 changes: 3 additions & 3 deletions src/qrules/particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
from qrules.conservation_rules import GellMannNishijimaInput, gellmann_nishijima
from qrules.quantum_numbers import Parity, _float_as_signed_str

if sys.version_info < (3, 11):
from typing_extensions import Self
else:
if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self
if TYPE_CHECKING:
from collections.abc import Iterable, Iterator

Expand Down
1,233 changes: 702 additions & 531 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit 63fff63

Please sign in to comment.