Skip to content

Commit 053467a

Browse files
authored
Merge pull request #108 from zfit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 7c03b79 + 51bacb8 commit 053467a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ repos:
4545

4646

4747
- repo: https://github.com/asottile/pyupgrade
48-
rev: v3.19.1
48+
rev: v3.20.0
4949
hooks:
5050
- id: pyupgrade
5151
args:
@@ -81,7 +81,7 @@ repos:
8181
- id: auto-walrus
8282

8383
- repo: https://github.com/astral-sh/ruff-pre-commit
84-
rev: "v0.11.4"
84+
rev: "v0.12.2"
8585
hooks:
8686
- id: ruff
8787
types_or:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ ignore = [
188188
"PD013", # "melt over stack": df function, but triggers on tensors
189189
"NPY002", # "Use rnd generator in numpy" -> we use np.random for some legacy stuff but do use the new one where we can
190190
"T201", # "print used" -> we use print for displaying information in verbose mode
191+
"PLC0415", # Import-outside-top-level
191192

192193
]
193194
isort.required-imports = ["from __future__ import annotations"]

src/zfit_physics/tfpwa/loss.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from collections.abc import Iterable
4-
from typing import TYPE_CHECKING, Optional, Union
4+
from typing import TYPE_CHECKING, Union
55

66
if TYPE_CHECKING:
77
import tf_pwa
@@ -13,7 +13,7 @@
1313

1414
from .variables import params_from_fcn
1515

16-
ParamType = Optional[Union[ZfitParameter, Iterable[ZfitParameter]]]
16+
ParamType = Union[ZfitParameter, Iterable[ZfitParameter]] | None
1717

1818

1919
def nll_from_fcn(fcn: tf_pwa.model.FCN, *, params: ParamType = None):

0 commit comments

Comments
 (0)