Skip to content

Commit 373bcdb

Browse files
chore: [pre-commit.ci] pre-commit autoupdate (#2561)
* updates: - github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.1 - github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.30.0
1 parent 70f71be commit 373bcdb

File tree

14 files changed

+32
-32
lines changed

14 files changed

+32
-32
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
- id: rst-inline-touching-normal
3636

3737
- repo: https://github.com/astral-sh/ruff-pre-commit
38-
rev: "v0.7.2"
38+
rev: "v0.8.1"
3939
hooks:
4040
- id: ruff
4141
args: ["--fix", "--show-fixes"]
@@ -75,7 +75,7 @@ repos:
7575
args: ["-w", "-L", "hist,gaus"]
7676

7777
- repo: https://github.com/python-jsonschema/check-jsonschema
78-
rev: 0.29.4
78+
rev: 0.30.0
7979
hooks:
8080
- id: check-readthedocs
8181
args: ["--verbose"]

src/pyhf/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pyhf.cli.complete import cli as complete
88
from pyhf.contrib import cli as contrib
99

10-
__all__ = ['cli', 'rootio', 'spec', 'infer', 'complete', 'contrib']
10+
__all__ = ['cli', 'complete', 'contrib', 'infer', 'rootio', 'spec']
1111

1212

1313
def __dir__():

src/pyhf/infer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def hypotest(
206206

207207
from pyhf.infer import intervals
208208

209-
__all__ = ["hypotest", "calculators", "intervals", "mle", "test_statistics", "utils"]
209+
__all__ = ["calculators", "hypotest", "intervals", "mle", "test_statistics", "utils"]
210210

211211

212212
def __dir__():

src/pyhf/infer/intervals/upper_limits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pyhf import get_backend
77
from pyhf.infer import hypotest
88

9-
__all__ = ["upper_limit", "linear_grid_scan", "toms748_scan"]
9+
__all__ = ["linear_grid_scan", "toms748_scan", "upper_limit"]
1010

1111

1212
def __dir__():

src/pyhf/optimize/opt_minuit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class minuit_optimizer(OptimizerMixin):
1111
Optimizer that minimizes via :meth:`iminuit.Minuit.migrad`.
1212
"""
1313

14-
__slots__ = ['name', 'errordef', 'steps', 'strategy', 'tolerance']
14+
__slots__ = ['errordef', 'name', 'steps', 'strategy', 'tolerance']
1515

1616
def __init__(self, *args, **kwargs):
1717
"""

src/pyhf/optimize/opt_scipy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class scipy_optimizer(OptimizerMixin):
1010
Optimizer that uses :func:`scipy.optimize.minimize`.
1111
"""
1212

13-
__slots__ = ['name', 'tolerance', 'solver_options']
13+
__slots__ = ['name', 'solver_options', 'tolerance']
1414

1515
def __init__(self, *args, **kwargs):
1616
"""

src/pyhf/parameters/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
from pyhf.parameters.paramview import ParamViewer
99

1010
__all__ = [
11-
'paramset',
12-
'unconstrained',
11+
'ParamViewer',
1312
'constrained_by_normal',
1413
'constrained_by_poisson',
14+
'paramset',
1515
'reduce_paramsets_requirements',
16-
'ParamViewer',
16+
'unconstrained',
1717
]
1818

1919

src/pyhf/schema/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
__all__ = [
1212
"load_schema",
13-
"validate",
1413
"path",
14+
"validate",
1515
"version",
1616
]
1717

src/pyhf/tensor/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
class _BackendRetriever:
55
__slots__ = [
6-
"_array_types",
76
"_array_subtypes",
8-
"numpy_backend",
7+
"_array_types",
98
"jax_backend",
9+
"numpy_backend",
1010
"pytorch_backend",
1111
"tensorflow_backend",
1212
]

src/pyhf/tensor/jax_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def log_prob(self, value):
5252
class jax_backend:
5353
"""JAX backend for pyhf"""
5454

55-
__slots__ = ['name', 'precision', 'dtypemap', 'default_do_grad']
55+
__slots__ = ['default_do_grad', 'dtypemap', 'name', 'precision']
5656

5757
#: The array type for jax
5858
array_type = Array

0 commit comments

Comments
 (0)