diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0fe147c346..1087037b32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,13 +27,13 @@ repos: exclude: ^validation/|\.dtd$|\.xml$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.287" + rev: "v0.0.292" hooks: - id: ruff args: ["--fix", "--show-fixes"] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black-jupyter @@ -62,11 +62,11 @@ repos: rev: 1.7.0 hooks: - id: nbqa-ruff - additional_dependencies: [ruff==0.0.287] + additional_dependencies: [ruff==0.0.292] args: ["--extend-ignore=F821,F401,F841,F811"] - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.2.6 hooks: - id: codespell files: ^.*\.(py|md|rst)$ diff --git a/docs/faq.rst b/docs/faq.rst index d821139463..48339ebb8e 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -141,7 +141,7 @@ How did ``pyhf`` get started? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In 2017 Lukas Heinrich was discussing with colleauge Holger Schulz how it would be convenient -to share and produce statistical results from LHC experiements if they were able to be +to share and produce statistical results from LHC experiments if they were able to be created with tools that didn't require the large ``C++`` dependencies and tooling expertise as :math:`\HiFa{}`. Around the same time that Lukas began thinking on these ideas, Matthew Feickert was working on diff --git a/docs/governance/ROADMAP.rst b/docs/governance/ROADMAP.rst index 65992ac5db..d3bca0d2f5 100644 --- a/docs/governance/ROADMAP.rst +++ b/docs/governance/ROADMAP.rst @@ -7,7 +7,7 @@ This is the pyhf 2019 into 2020 Roadmap (Issue Overview and Goals ------------------ -We will follow loosely Seibert’s `Heirarchy of +We will follow loosely Seibert’s `Hierarchy of Needs `__ |Seibert Hierarchy of Needs SciPy 2019| (`Stan diff --git a/src/pyhf/contrib/viz/brazil.py b/src/pyhf/contrib/viz/brazil.py index 4e25a63c1b..a8955f20eb 100644 --- a/src/pyhf/contrib/viz/brazil.py +++ b/src/pyhf/contrib/viz/brazil.py @@ -112,7 +112,7 @@ def plot_brazil_band(test_pois, cls_obs, cls_exp, test_size, ax, **kwargs): ax (:obj:`matplotlib.axes.Axes`): The matplotlib axis object to plot on. Returns: - :obj:`tuple`: The :obj:`matplotlib.aritst` objects drawn. + :obj:`tuple`: The :obj:`matplotlib.artist` objects drawn. """ line_color = kwargs.pop("color", "black") (cls_obs_line,) = ax.plot( diff --git a/src/pyhf/tensor/jax_backend.py b/src/pyhf/tensor/jax_backend.py index dc6788a337..6ae53b7bec 100644 --- a/src/pyhf/tensor/jax_backend.py +++ b/src/pyhf/tensor/jax_backend.py @@ -89,8 +89,8 @@ def clip(self, tensor_in, min_value, max_value): Args: tensor_in (:obj:`tensor`): The input tensor object - min_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The minimum value to be cliped to - max_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The maximum value to be cliped to + min_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The minimum value to be clipped to + max_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The maximum value to be clipped to Returns: JAX ndarray: A clipped `tensor` diff --git a/src/pyhf/tensor/numpy_backend.py b/src/pyhf/tensor/numpy_backend.py index bb96393937..4623ea5797 100644 --- a/src/pyhf/tensor/numpy_backend.py +++ b/src/pyhf/tensor/numpy_backend.py @@ -98,8 +98,8 @@ def clip( Args: tensor_in (:obj:`tensor`): The input tensor object - min_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The minimum value to be cliped to - max_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The maximum value to be cliped to + min_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The minimum value to be clipped to + max_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The maximum value to be clipped to Returns: NumPy ndarray: A clipped `tensor` diff --git a/src/pyhf/tensor/pytorch_backend.py b/src/pyhf/tensor/pytorch_backend.py index a09d3369fe..fb0cd4ad52 100644 --- a/src/pyhf/tensor/pytorch_backend.py +++ b/src/pyhf/tensor/pytorch_backend.py @@ -49,8 +49,8 @@ def clip(self, tensor_in, min_value, max_value): Args: tensor_in (:obj:`tensor`): The input tensor object - min_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The minimum value to be cliped to - max_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The maximum value to be cliped to + min_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The minimum value to be clipped to + max_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The maximum value to be clipped to Returns: PyTorch tensor: A clipped `tensor` diff --git a/src/pyhf/tensor/tensorflow_backend.py b/src/pyhf/tensor/tensorflow_backend.py index bc5a4f754f..1e51a2a885 100644 --- a/src/pyhf/tensor/tensorflow_backend.py +++ b/src/pyhf/tensor/tensorflow_backend.py @@ -46,8 +46,8 @@ def clip(self, tensor_in, min_value, max_value): Args: tensor_in (:obj:`tensor`): The input tensor object - min_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The minimum value to be cliped to - max_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The maximum value to be cliped to + min_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The minimum value to be clipped to + max_value (:obj:`scalar` or :obj:`tensor` or :obj:`None`): The maximum value to be clipped to Returns: TensorFlow Tensor: A clipped `tensor`