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 #617

Merged
merged 4 commits into from
Aug 27, 2024
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ 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"]
- id: ruff-format
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
Expand Down
4 changes: 3 additions & 1 deletion notebooks/ParticleDemo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
},
"outputs": [],
"source": [
"from __future__ import annotations\n",
"\n",
"!python -m particle -h"
]
},
Expand Down Expand Up @@ -180,7 +182,7 @@
},
"outputs": [],
"source": [
"from particle import PDGID, Particle, Charge"
"from particle import PDGID, Charge, Particle"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/particle/particle/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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} !"
Expand Down