From de7f24ef7d8be5604768dff5aa5b673e2d53e479 Mon Sep 17 00:00:00 2001 From: Juan Orduz Date: Tue, 12 Nov 2024 20:12:35 +0100 Subject: [PATCH] update pre-commit and small typo (caught by codespell) --- .pre-commit-config.yaml | 7 +++++++ numpyro/distributions/continuous.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 793b3603d..ab02f3e01 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,6 +14,13 @@ repos: language: system files: "(.py$)|(.*.ipynb$)" + - id: mypy + name: mypy + language: python + entry: mypy --install-types --non-interactive + files: ^numpyro/ + + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: diff --git a/numpyro/distributions/continuous.py b/numpyro/distributions/continuous.py index 2d4217632..af17c4794 100644 --- a/numpyro/distributions/continuous.py +++ b/numpyro/distributions/continuous.py @@ -600,7 +600,7 @@ def __init__( transition_matrix.ndim == 2 ), "`transition_matrix` argument should be a square matrix" self.transition_matrix = transition_matrix - # Expand the covariance/presicion/scale matrices to the right number of steps. + # Expand the covariance/precision/scale matrices to the right number of steps. args = { "covariance_matrix": covariance_matrix, "precision_matrix": precision_matrix,