Skip to content

Commit 15c312e

Browse files
chore: update pre-commit hooks (#419)
* chore: update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.0](astral-sh/ruff-pre-commit@v0.1.14...v0.2.0) * style: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3947451 commit 15c312e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
- id: end-of-file-fixer
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.1.14"
27+
rev: "v0.2.0"
2828
hooks:
2929
- id: ruff
3030
args: ["--fix", "--show-fixes"]

src/decaylanguage/utils/particleutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _from_group_dict_list(mat: dict[str, Any]) -> list[Particle]:
139139
if mat["state"]:
140140
name += f'({mat["state"]})'
141141

142-
if "prime" in mat and mat["prime"]:
142+
if mat.get("prime"):
143143
name += "'"
144144

145145
if mat["star"]:

0 commit comments

Comments
 (0)