Skip to content

Commit cb8ee0b

Browse files
authored
[pre-commit.ci] pre-commit autoupdate (#183)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.1 → v0.3.5](astral-sh/ruff-pre-commit@v0.2.1...v0.3.5) - [github.com/psf/black-pre-commit-mirror: 24.1.1 → 24.3.0](psf/black-pre-commit-mirror@24.1.1...24.3.0) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0) <!--pre-commit.ci end-->
2 parents d932058 + e87c236 commit cb8ee0b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.2.1
3+
rev: v0.3.5
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 24.1.1
9+
rev: 24.3.0
1010
hooks:
1111
- id: black
1212

@@ -24,7 +24,7 @@ repos:
2424
exclude: \.github/ISSUE_TEMPLATE\.md|\.github/PULL_REQUEST_TEMPLATE\.md
2525

2626
- repo: https://github.com/pre-commit/mirrors-mypy
27-
rev: v1.8.0
27+
rev: v1.9.0
2828
hooks:
2929
- id: mypy
3030
additional_dependencies: [pytest, types-freezegun, types-setuptools]

tests/test_number.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ def test_fractional(test_input: float | str, expected: str) -> None:
200200
([0.3, 0], "3 x 10⁻¹"),
201201
([1e20], "1.00 x 10²⁰"),
202202
([2e-20], "2.00 x 10⁻²⁰"),
203-
([float(-3e20)], "-3.00 x 10²⁰"),
204-
([float(-4e-20)], "-4.00 x 10⁻²⁰"),
203+
([-3e20], "-3.00 x 10²⁰"),
204+
([-4e-20], "-4.00 x 10⁻²⁰"),
205205
([math.nan], "NaN"),
206206
([math.inf], "+Inf"),
207207
([-math.inf], "-Inf"),

0 commit comments

Comments
 (0)