From 59cf14bbaad48bebf65c86e8d6cccac6e80b5c53 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:16:53 +0000 Subject: [PATCH 1/3] 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.5.7 → v0.6.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.7...v0.6.2) - [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.1...v1.11.2) --- .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 df229dc2..b39c5a46 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: end-of-file-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.5.7" + rev: "v0.6.2" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -27,7 +27,7 @@ repos: types_or: [python, pyi, jupyter] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.1 + rev: v1.11.2 hooks: - id: mypy files: src From f352a3b243b5c99bbc0ef4d17c4619a7a1c8605b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:17:56 +0000 Subject: [PATCH 2/3] style: pre-commit fixes --- notebooks/ParticleDemo.ipynb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/notebooks/ParticleDemo.ipynb b/notebooks/ParticleDemo.ipynb index 49e80030..ef5ac37e 100644 --- a/notebooks/ParticleDemo.ipynb +++ b/notebooks/ParticleDemo.ipynb @@ -52,6 +52,8 @@ }, "outputs": [], "source": [ + "from __future__ import annotations\n", + "\n", "!python -m particle -h" ] }, @@ -180,7 +182,7 @@ }, "outputs": [], "source": [ - "from particle import PDGID, Particle, Charge" + "from particle import PDGID, Charge, Particle" ] }, { From 40069db109c75612e16f3c3bfccad78614fe777d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:03:07 +0000 Subject: [PATCH 3/3] style: pre-commit fixes --- src/particle/particle/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/particle/particle/convert.py b/src/particle/particle/convert.py index 1d2e0797..a6793d03 100644 --- a/src/particle/particle/convert.py +++ b/src/particle/particle/convert.py @@ -322,7 +322,7 @@ def get_from_pdg_mcd(filename: StringOrIO) -> pd.DataFrame: | nar.duplicated(subset=["ID4"], keep=False) & nar["ID4"].notna() ) if nar[duplicated_ids].shape[0] > 0: - print("DUPLICATES:\n", nar[duplicated_ids]) # noqa: T201 + print("DUPLICATES:\n", nar[duplicated_ids]) assert ( nar[duplicated_ids].shape[0] == 0 ), f"Duplicate entries found in {filename} !"