Skip to content

Commit

Permalink
chore(deps): update pre-commit hooks (#617)
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.5.7 → v0.6.2](astral-sh/ruff-pre-commit@v0.5.7...v0.6.2)
- [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](pre-commit/mirrors-mypy@v1.11.1...v1.11.2)

* style: pre-commit fixes

* style: pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eduardo Rodrigues <eduardo.rodrigues@cern.ch>
  • Loading branch information
pre-commit-ci[bot] and eduardo-rodrigues committed Aug 27, 2024
1 parent a3f9d32 commit 79fd56d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
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

0 comments on commit 79fd56d

Please sign in to comment.