From 30b0036afb65bdcb9ea72bfbeb64c0b0161c0cec Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 23:23:22 +0000 Subject: [PATCH 1/2] chore(deps): update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.3.2) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 065b310..dc51bbe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,14 +18,14 @@ repos: - id: check-yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.2.2" + rev: "v0.3.2" hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.9.0 hooks: - id: mypy files: src From 7098326c4a7d9d0309ca42442ccef625cab06bed Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 23:25:17 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- src/hepunits/units/units.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hepunits/units/units.py b/src/hepunits/units/units.py index a6b1b31..af27e11 100644 --- a/src/hepunits/units/units.py +++ b/src/hepunits/units/units.py @@ -66,7 +66,6 @@ .. [SI] http://www.physics.nist.gov/cuu/Units/index.html. """ - from math import pi as _pi from typing import List