Skip to content

Commit 6f9c628

Browse files
authored
Merge pull request #13854 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 8c7be91 + 2004bb6 commit 6f9c628

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: "v0.14.1"
3+
rev: "v0.14.2"
44
hooks:
55
- id: ruff-check
66
args: ["--fix"]
@@ -12,7 +12,7 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: check-yaml
1414
- repo: https://github.com/woodruffw/zizmor-pre-commit
15-
rev: v1.15.2
15+
rev: v1.16.0
1616
hooks:
1717
- id: zizmor
1818
- repo: https://github.com/adamchainz/blacken-docs
@@ -48,7 +48,7 @@ repos:
4848
# on <3.11
4949
- exceptiongroup>=1.0.0rc8
5050
- repo: https://github.com/RobertCraigie/pyright-python
51-
rev: v1.1.406
51+
rev: v1.1.407
5252
hooks:
5353
- id: pyright
5454
files: ^(src/|scripts/)

src/_pytest/timing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def time(self) -> float:
8484
return self._current_time
8585

8686
def patch(self, monkeypatch: MonkeyPatch) -> None:
87+
# pylint: disable-next=import-self
8788
from _pytest import timing # noqa: PLW0406
8889

8990
monkeypatch.setattr(timing, "sleep", self.sleep)

testing/python/approx.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import decimal
66
from decimal import Decimal
77
from fractions import Fraction
8+
from math import inf
9+
from math import nan
810
from math import sqrt
911
import operator
1012
from operator import eq
@@ -16,9 +18,6 @@
1618
from pytest import approx
1719

1820

19-
inf, nan = float("inf"), float("nan")
20-
21-
2221
@pytest.fixture
2322
def mocked_doctest_runner(monkeypatch):
2423
import doctest

0 commit comments

Comments
 (0)