From 833e8c78cd05ef4531896c2d3ce0bc519e7e310b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 09:51:38 +0100 Subject: [PATCH] chore(deps): update pre-commit hooks (#650) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.1) * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- src/particle/particle/convert.py | 6 +++--- src/particle/pdgid/pdgid.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d2a7c923..22733fd1 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.8.6" + rev: "v0.9.1" hooks: - id: ruff args: ["--fix", "--show-fixes"] diff --git a/src/particle/particle/convert.py b/src/particle/particle/convert.py index 29eaf187..2f950473 100644 --- a/src/particle/particle/convert.py +++ b/src/particle/particle/convert.py @@ -323,9 +323,9 @@ def get_from_pdg_mcd(filename: StringOrIO) -> pd.DataFrame: ) if nar[duplicated_ids].shape[0] > 0: print("DUPLICATES:\n", nar[duplicated_ids]) - assert ( - nar[duplicated_ids].shape[0] == 0 - ), f"Duplicate entries found in {filename} !" + assert nar[duplicated_ids].shape[0] == 0, ( + f"Duplicate entries found in {filename} !" + ) ds_list = [] for i in range(4): diff --git a/src/particle/pdgid/pdgid.py b/src/particle/pdgid/pdgid.py index d86e7411..03a1ce42 100644 --- a/src/particle/pdgid/pdgid.py +++ b/src/particle/pdgid/pdgid.py @@ -123,6 +123,6 @@ def info(self) -> str: # Verify the PDGID class has all relevant functions defined in the pdgid.functions module for _n in _fnames: - assert _n in dir( - PDGID - ), f"{_n} missing from PDGID class! Update the list in pdgid.py" + assert _n in dir(PDGID), ( + f"{_n} missing from PDGID class! Update the list in pdgid.py" + )