Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#183)
Browse files Browse the repository at this point in the history
<!--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-->
  • Loading branch information
hugovk authored Apr 2, 2024
2 parents d932058 + e87c236 commit cb8ee0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit cb8ee0b

Please sign in to comment.