Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update pre-commit hooks #650

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
)
Loading