Skip to content

Commit

Permalink
chore: update pre-commit hooks (#387)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.291 → v0.0.292](astral-sh/ruff-pre-commit@v0.0.291...v0.0.292)
- [github.com/tox-dev/pyproject-fmt: 1.1.0 → 1.2.0](tox-dev/pyproject-fmt@1.1.0...1.2.0)
- [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](codespell-project/codespell@v2.2.5...v2.2.6)

* style: pre-commit fixes

* Fix pre-commit

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Saransh Chopra <saransh0701@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and Saransh-cpp authored Oct 3, 2023
1 parent 3c598df commit 826572b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.291"
rev: "v0.0.292"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.1.0"
rev: "1.2.0"
hooks:
- id: pyproject-fmt

Expand All @@ -45,7 +45,7 @@ repos:
- packaging

- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
rev: v2.2.6
hooks:
- id: codespell

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
Expand Down
2 changes: 1 addition & 1 deletion src/vector/backends/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ def __array_ufunc__(
) -> typing.Any:
"""
Implements NumPy's ``ufunc``s for ``VectorNumpy``. The current implementation
includes ``numpy.absolute``, ``numpy.add``, ``numpy.subtract``, ``numpy.multipy``,
includes ``numpy.absolute``, ``numpy.add``, ``numpy.subtract``, ``numpy.multiply``,
``numpy.positive``, ``numpy.negative``, ``numpy.true_divide``, ``numpy.power``,
``numpy.square``, ``numpy.sqrt``, ``numpy.cbrt``, ``numpy.matmul``, ``numpy.equal``,
and ``numpy.not_equal``.
Expand Down
2 changes: 1 addition & 1 deletion src/vector/backends/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def __array_ufunc__(
"""
Implements NumPy's ``ufunc``s for ``VectorObject`` and its subclasses. The current
implementation includes ``numpy.absolute``, ``numpy.add``, ``numpy.subtract``,
``numpy.multipy``, ``numpy.positive``, ``numpy.negative``, ``numpy.true_divide``,
``numpy.multiply``, ``numpy.positive``, ``numpy.negative``, ``numpy.true_divide``,
``numpy.power``, ``numpy.square``, ``numpy.sqrt``, ``numpy.cbrt``, ``numpy.matmul``,
``numpy.equal``, and ``numpy.not_equal``.
"""
Expand Down

0 comments on commit 826572b

Please sign in to comment.