Skip to content

Commit

Permalink
chore(deps): update pre-commit hooks (#650)
Browse files Browse the repository at this point in the history
* chore(deps): update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](astral-sh/ruff-pre-commit@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>
  • Loading branch information
pre-commit-ci[bot] authored Jan 14, 2025
1 parent 1013f84 commit 833e8c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
6 changes: 3 additions & 3 deletions src/particle/particle/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 3 additions & 3 deletions src/particle/pdgid/pdgid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

0 comments on commit 833e8c7

Please sign in to comment.