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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-added-large-files
args: [ '--maxkb=1000' ]
Expand Down Expand Up @@ -31,7 +31,7 @@ repos:
# - hatch-vcs

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
rev: v1.18.2
hooks:
- id: mypy
files: src
Expand All @@ -51,7 +51,7 @@ repos:
- id: rst-directive-colons

- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
rev: v3.20.0
hooks:
- id: pyupgrade
args: [ --py39-plus ]
Expand Down Expand Up @@ -90,7 +90,7 @@ repos:
- id: rm-unneeded-f-str

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.32.1
rev: 0.34.0
hooks:
- id: check-github-workflows
- id: check-github-actions
Expand All @@ -103,7 +103,7 @@ repos:
- id: auto-walrus

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.4"
rev: "v0.13.3"
hooks:
- id: ruff
types_or: [ python, pyi, jupyter ]
Expand Down
2 changes: 1 addition & 1 deletion src/hepstats/hypotests/toyutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def get_toyresult(self, poigen: POI, poieval: POIarray) -> ToyResult:

if index not in self.keys():
for k in self.keys():
poigen_k, poieval_k = k
poigen_k, _poieval_k = k
if poigen_k != poigen:
continue
if np.isin(poieval.values, k[-1].values).all():
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def create_loss_func(npeak, nbins=None, nbkg=None, nameadd="", obs=None):

def create_sim_loss_func(npeak, nbins=None):
loss1, params1 = create_loss_func(npeak, nbins=nbins, nameadd="_1", obs="x1")
loss2, params2 = create_loss_func(npeak * 10, nbins=nbins, nameadd="_2", obs="x2", nbkg=500)
loss2, _params2 = create_loss_func(npeak * 10, nbins=nbins, nameadd="_2", obs="x2", nbkg=500)
loss = loss1 + loss2

return loss, params1
Expand Down
Loading