diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f1e3e2..4ca741e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.1 + rev: v0.3.5 hooks: - id: ruff args: [--exit-non-zero-on-fix] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.1.1 + rev: 24.3.0 hooks: - id: black @@ -24,7 +24,7 @@ repos: exclude: \.github/ISSUE_TEMPLATE\.md|\.github/PULL_REQUEST_TEMPLATE\.md - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.9.0 hooks: - id: mypy additional_dependencies: [pytest, types-freezegun, types-setuptools] diff --git a/tests/test_number.py b/tests/test_number.py index 2eaa6eb..705ed43 100644 --- a/tests/test_number.py +++ b/tests/test_number.py @@ -200,8 +200,8 @@ def test_fractional(test_input: float | str, expected: str) -> None: ([0.3, 0], "3 x 10⁻¹"), ([1e20], "1.00 x 10²⁰"), ([2e-20], "2.00 x 10⁻²⁰"), - ([float(-3e20)], "-3.00 x 10²⁰"), - ([float(-4e-20)], "-4.00 x 10⁻²⁰"), + ([-3e20], "-3.00 x 10²⁰"), + ([-4e-20], "-4.00 x 10⁻²⁰"), ([math.nan], "NaN"), ([math.inf], "+Inf"), ([-math.inf], "-Inf"),