Skip to content

Commit ab11b7b

Browse files
chore: update pre-commit hooks (#597)
* chore: update pre-commit hooks updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](pre-commit/pre-commit-hooks@v5.0.0...v6.0.0) - [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.17.1](pre-commit/mirrors-mypy@v1.15.0...v1.17.1) - [github.com/numpy/numpydoc: v1.8.0 → v1.9.0](numpy/numpydoc@v1.8.0...v1.9.0) - [github.com/astral-sh/ruff-pre-commit: v0.11.11 → v0.12.11](astral-sh/ruff-pre-commit@v0.11.11...v0.12.11) * Ruff fixes for updated pre-commit version. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Patrick Peglar <[email protected]>
1 parent 6ce3209 commit ab11b7b

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ minimum_pre_commit_version: 1.21.0
1414

1515
repos:
1616
- repo: https://github.com/pre-commit/pre-commit-hooks
17-
rev: v5.0.0
17+
rev: v6.0.0
1818
hooks:
1919
# Prevent giant files from being committed.
2020
- id: check-added-large-files
@@ -58,21 +58,21 @@ repos:
5858
additional_dependencies: [tomli]
5959

6060
- repo: https://github.com/pre-commit/mirrors-mypy
61-
rev: 'v1.15.0'
61+
rev: 'v1.17.1'
6262
hooks:
6363
- id: mypy
6464
additional_dependencies:
6565
- 'types-requests'
6666
exclude: 'docs/|cf_units/_udunits2_parser/parser/.*\.py|cf_units/_udunits2_parser/_antlr4_runtime/.*\.py'
6767

6868
- repo: https://github.com/numpy/numpydoc
69-
rev: v1.8.0
69+
rev: v1.9.0
7070
hooks:
7171
- id: numpydoc-validation
7272
types: [file, python]
7373

7474
- repo: https://github.com/astral-sh/ruff-pre-commit
75-
rev: "v0.11.11"
75+
rev: "v0.12.11"
7676
hooks:
7777
# Run the linter
7878
- id: ruff

cf_units/_udunits2_parser/compile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
You're welcome ;).
1414
1515
"""
16-
# ruff: noqa: E501
1716

1817
import collections
1918
from pathlib import Path

cf_units/tests/integration/parse/test_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#
33
# This file is part of cf-units and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
# ruff: noqa: E402
65

76
from cf_units._udunits2_parser import parse
87
import cf_units._udunits2_parser.graph as g

cf_units/tests/integration/parse/test_parse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#
33
# This file is part of cf-units and is released under the BSD license.
44
# See LICENSE in the root of the repository for full licensing details.
5-
# ruff: noqa: E402
65
import re
76

87
import pytest

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def get_package_data():
9292

9393
def numpy_build_ext(pars):
9494
"""Make the NumPy headers available for the Cython layer."""
95-
from setuptools.command.build_ext import build_ext as _build_ext
95+
from setuptools.command.build_ext import build_ext as _build_ext # noqa: PLC0415
9696

9797
class build_ext(_build_ext):
9898
def finalize_options(self):
@@ -105,7 +105,7 @@ def _set_builtin(name, value):
105105

106106
_build_ext.finalize_options(self)
107107
_set_builtin("__NUMPY_SETUP__", False)
108-
import numpy
108+
import numpy # noqa: PLC0415
109109

110110
self.include_dirs.append(numpy.get_include())
111111

0 commit comments

Comments
 (0)