Skip to content

Commit c27c151

Browse files
MAINT: upgrade lock files (#201)
* DX: add agent configurations to `.gitignore` * MAINT: address linting issues and apply autofixes * MAINT: bump release-drafter/release-drafter in the lock group * MAINT: implement updates from formatters * MAINT: use same formatting for `ty` comments
1 parent 6b314f5 commit c27c151

28 files changed

Lines changed: 818 additions & 763 deletions

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"costheta",
5959
"difflib",
6060
"docnb",
61+
"dunder",
6162
"elif",
6263
"endswith",
6364
"eqnarray",

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@ typings/
3232
pyvenv*/
3333

3434
# Settings
35+
.agents/
36+
.claude/
3537
.idea/
3638
**.code-workspace
39+
AGENTS.md
40+
CLAUDE.md

.pre-commit-config.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: check-useless-excludes
1616

1717
- repo: https://github.com/ComPWA/policy
18-
rev: 0.9.0
18+
rev: 0.9.3
1919
hooks:
2020
- id: check-dev-files
2121

@@ -57,7 +57,7 @@ repos:
5757
- id: strip-nb-whitespace
5858

5959
- repo: https://github.com/astral-sh/ruff-pre-commit
60-
rev: v0.15.21
60+
rev: v0.16.1
6161
hooks:
6262
- id: ruff-check
6363
args: [--fix]
@@ -81,7 +81,7 @@ repos:
8181
- id: trailing-whitespace
8282

8383
- repo: https://github.com/tombi-toml/tombi-pre-commit
84-
rev: v1.2.0
84+
rev: v1.2.5
8585
hooks:
8686
- id: tombi-format
8787
- id: tombi-lint
@@ -96,7 +96,6 @@ repos:
9696
rev: v10.0.1
9797
hooks:
9898
- id: cspell
99-
language_version: 25.9.0
10099

101100
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
102101
rev: 3.6.1
@@ -110,12 +109,12 @@ repos:
110109
)$
111110
112111
- repo: https://github.com/astral-sh/ty-pre-commit
113-
rev: v0.0.59
112+
rev: v0.0.65
114113
hooks:
115114
- id: ty
116115
args: [--group=types, --no-default-groups]
117116

118117
- repo: https://github.com/astral-sh/uv-pre-commit
119-
rev: 0.11.28
118+
rev: 0.12.0
120119
hooks:
121120
- id: uv-lock

docs/comparison/jpsi2phipipi.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"import qrules\n",
5252
"import sympy as sp\n",
5353
"from ampform.kinematics.lorentz import FourMomentumSymbol, InvariantMass\n",
54-
"from ampform.sympy._cache import get_readable_hash # noqa: PLC2701\n",
54+
"from ampform.sympy._cache import get_readable_hash # ruff: ignore[import-private-name]\n",
5555
"from IPython.display import Latex, Markdown, clear_output, display\n",
5656
"from ipywidgets import (\n",
5757
" Accordion,\n",
@@ -871,7 +871,7 @@
871871
"name": "python",
872872
"nbconvert_exporter": "python",
873873
"pygments_lexer": "ipython3",
874-
"version": "3.13.12"
874+
"version": "3.13.14"
875875
}
876876
},
877877
"nbformat": 4,

docs/comparison/jpsi2pipipi.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"import qrules\n",
5252
"import sympy as sp\n",
5353
"from ampform.kinematics.lorentz import FourMomentumSymbol, InvariantMass\n",
54-
"from ampform.sympy._cache import get_readable_hash # noqa: PLC2701\n",
54+
"from ampform.sympy._cache import get_readable_hash # ruff: ignore[import-private-name]\n",
5555
"from IPython.display import Latex, Markdown, clear_output, display\n",
5656
"from ipywidgets import (\n",
5757
" Accordion,\n",
@@ -868,7 +868,7 @@
868868
"name": "python",
869869
"nbconvert_exporter": "python",
870870
"pygments_lexer": "ipython3",
871-
"version": "3.13.9"
871+
"version": "3.13.14"
872872
}
873873
},
874874
"nbformat": 4,

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
api_target_types: dict[str, str] = {}
7878
author = "Common Partial Wave Analysis"
7979
autodoc_default_options = {
80-
"exclude-members": ", ".join([ # noqa: FLY002
80+
"exclude-members": ", ".join([ # ruff: ignore[static-join-to-f-string]
8181
"default_assumptions",
8282
"doit",
8383
"evaluate",
@@ -98,7 +98,7 @@
9898
codeautolink_concat_default = True
9999
copybutton_prompt_is_regexp = True
100100
copybutton_prompt_text = r">>> |\.\.\. " # doctest
101-
copyright = f"2022, {ORGANIZATION}" # noqa: A001
101+
copyright = f"2022, {ORGANIZATION}"
102102
default_role = "py:obj"
103103
exclude_patterns = [
104104
"**.ipynb_checkpoints",

docs/serialization.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@
392392
"source": [
393393
"s, m0, Γ0, m1, m2, γ = sp.symbols(\"s m0 Gamma0 m1 m2 gamma\", nonnegative=True)\n",
394394
"expr = BuggBreitWigner(s, m0, Γ0, m1, m2, γ)\n",
395-
"Math(aslatex({expr: expr.doit(deep=False)})) # noqa: PGH003"
395+
"Math(aslatex({expr: expr.doit(deep=False)}))"
396396
]
397397
},
398398
{
@@ -990,7 +990,7 @@
990990
"name": "python",
991991
"nbconvert_exporter": "python",
992992
"pygments_lexer": "ipython3",
993-
"version": "3.13.12"
993+
"version": "3.13.14"
994994
}
995995
},
996996
"nbformat": 4,

pyproject.toml

Lines changed: 68 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -366,36 +366,37 @@ line-ending = "lf"
366366
ignore = [
367367
"ANN",
368368
"ARG00",
369-
"B028",
370-
"C408",
371-
"COM812",
372-
"CPY001",
373-
"D101",
374-
"D102",
375-
"D103",
376-
"D105",
377-
"D107",
378-
"D203",
379-
"D213",
380-
"D407",
381-
"D416",
382369
"DOC",
383-
"E501",
384370
"FBT",
385-
"FURB101",
386-
"FURB103",
387-
"FURB140",
388-
"G004",
389-
"ISC001",
390-
"ISC003",
391-
"PLC2401",
392-
"PLR0913",
393-
"PLW1514",
394-
"PT001",
395371
"PTH",
396-
"RUF067",
397-
"S301",
398-
"SIM108",
372+
"any-type",
373+
"explicit-string-concatenation",
374+
"if-else-block-instead-of-if-exp",
375+
"incorrect-blank-line-before-class",
376+
"line-too-long",
377+
"logging-f-string",
378+
"missing-copyright-notice",
379+
"missing-dashed-underline-after-section",
380+
"missing-section-name-colon",
381+
"missing-trailing-comma",
382+
"multi-line-summary-second-line",
383+
"no-explicit-stacklevel",
384+
"non-ascii-name",
385+
"non-empty-init-module",
386+
"pytest-fixture-incorrect-parentheses-style",
387+
"read-whole-file",
388+
"reimplemented-starmap",
389+
"single-line-implicit-string-concatenation",
390+
"suspicious-pickle-usage",
391+
"too-many-arguments",
392+
"undocumented-magic-method",
393+
"undocumented-public-class",
394+
"undocumented-public-function",
395+
"undocumented-public-init",
396+
"undocumented-public-method",
397+
"unnecessary-collection-call",
398+
"unspecified-encoding",
399+
"write-whole-file",
399400
]
400401
select = ["ALL"]
401402
task-tags = ["cspell"]
@@ -432,54 +433,58 @@ ignore-names = [
432433
[tool.ruff.lint.per-file-ignores]
433434
"*" = ["D"]
434435
"*.ipynb" = [
435-
"B018",
436436
"C90",
437437
"D",
438-
"E303",
439-
"E402",
440-
"E703",
441-
"N806",
442-
"N816",
443438
"PLR09",
444-
"PLR2004",
445-
"PLW0602",
446-
"PLW0603",
447-
"PLW2901",
448-
"S101",
449439
"T20",
450440
"TC00",
441+
"assert",
442+
"global-statement",
443+
"global-variable-not-assigned",
444+
"magic-value-comparison",
445+
"mixed-case-variable-in-global-scope",
446+
"module-import-not-at-top-of-file",
447+
"non-lowercase-variable-in-function",
448+
"redefined-loop-name",
449+
"too-many-blank-lines",
450+
"useless-expression",
451+
"useless-semicolon",
451452
]
452453
"docs/*" = [
453-
"E402",
454-
"INP001",
455-
"PLR2004",
456-
"S101",
457-
"S113",
458-
"T201",
454+
"assert",
455+
"implicit-namespace-package",
456+
"magic-value-comparison",
457+
"module-import-not-at-top-of-file",
458+
"print",
459+
"request-without-timeout",
459460
]
460-
"docs/conf.py" = ["D100"]
461-
"jpsi2ksp.ipynb" = ["PLC2701"]
461+
"docs/conf.py" = [
462+
"builtin-variable-shadowing",
463+
"undocumented-public-module",
464+
]
465+
"jpsi2ksp.ipynb" = ["import-private-name"]
462466
"serialization.ipynb" = [
463-
"E741",
464-
"N813",
465-
"PLC2403",
466-
"PLC2701",
467-
"RUF100",
467+
"ambiguous-variable-name",
468+
"camelcase-imported-as-lowercase",
469+
"non-ascii-import-name",
470+
"import-private-name",
471+
"unused-noqa",
468472
]
469-
"setup.py" = ["D100"]
470-
"src/ampform_dpd/io/cached.py" = ["S403"]
471-
"src/ampform_dpd/io/serialization/amplitude.py" = ["E741"]
472-
"src/ampform_dpd/io/serialization/format.py" = ["E741"]
473+
"setup.py" = ["undocumented-public-module"]
474+
"src/ampform_dpd/io/cached.py" = ["suspicious-pickle-import"]
475+
"src/ampform_dpd/io/serialization/amplitude.py" = ["ambiguous-variable-name"]
476+
"src/ampform_dpd/io/serialization/format.py" = ["ambiguous-variable-name"]
473477
"tests/*" = [
474478
"D",
475-
"INP001",
476-
"PLC2701",
477-
"PLR2004",
478-
"PLR6301",
479-
"RUF069",
480-
"S101",
481-
"SLF001",
482479
"T20",
480+
"assert",
481+
"boolean-type-hint-positional-argument",
482+
"float-equality-comparison",
483+
"implicit-namespace-package",
484+
"import-private-name",
485+
"magic-value-comparison",
486+
"no-self-use",
487+
"private-member-access",
483488
]
484489

485490
[tool.ruff.lint.pydocstyle]
@@ -514,7 +519,7 @@ key-empty = "off"
514519

515520
[[tool.tombi.schemas]]
516521
root = "tool.compwa.policy"
517-
path = "https://raw.githubusercontent.com/ComPWA/policy/0.9.0/compwa-policy.schema.json"
522+
path = "https://raw.githubusercontent.com/ComPWA/policy/0.9.3/compwa-policy.schema.json"
518523
include = ["pyproject.toml"]
519524

520525
[[tool.ty.overrides]]

0 commit comments

Comments
 (0)