Skip to content

Commit

Permalink
chore(deps): update pre-commit hooks (#517)
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.0.280 → v0.0.281](astral-sh/ruff-pre-commit@v0.0.280...v0.0.281)

* 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 Aug 3, 2023
1 parent f926332 commit 7b98285
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
- id: black-jupyter

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.280"
rev: "v0.0.281"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
4 changes: 2 additions & 2 deletions tests/pdgid/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ def test_A(PDGIDs):
PDGIDs.HydrogenNucleus: 1,
PDGIDs.Carbon12: 12,
}
_non_nuclei = [pid for pid in PDGIDs if pid not in _nuclei.keys()]
_non_nuclei = [pid for pid in PDGIDs if pid not in _nuclei]
for pid, a in _nuclei.items():
assert A(pid) == a
for pid in _non_nuclei:
Expand All @@ -863,7 +863,7 @@ def test_Z(PDGIDs):
PDGIDs.HydrogenNucleus: 1,
PDGIDs.Carbon12: 6,
}
_non_nuclei = [pid for pid in PDGIDs if pid not in _nuclei.keys()]
_non_nuclei = [pid for pid in PDGIDs if pid not in _nuclei]
for pid, z in _nuclei.items():
assert Z(pid) == z
for pid in _non_nuclei:
Expand Down

0 comments on commit 7b98285

Please sign in to comment.