Skip to content

Commit

Permalink
chore: update pre-commit hooks (#222)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/psf/black: 21.12b0 → 22.1.0](psf/black@21.12b0...22.1.0)

* 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 Jan 31, 2022
1 parent 23e56fd commit 0a7bdbc
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 @@ -10,7 +10,7 @@ repos:
args: [--py36-plus]

- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.1.0
hooks:
- id: black-jupyter

Expand Down
4 changes: 2 additions & 2 deletions tests/decay/test_decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def test_DecayChain_flatten_complex():
assert dc_flatten.decays[dc_flatten.mother].daughters == DaughtersDict(
{"gamma": 6, "pi+": 3, "pi-": 2}
)
assert dc_flatten.bf == approx(1.0 * 0.0124 * (0.692 ** 2) * (0.98823 ** 3))
assert dc_flatten.bf == approx(1.0 * 0.0124 * (0.692**2) * (0.98823**3))


def test_DecayChain_flatten_with_stable_particles():
Expand All @@ -317,7 +317,7 @@ def test_DecayChain_flatten_with_stable_particles():
assert dc_flatten.decays[dc_flatten.mother].daughters == DaughtersDict(
{"pi0": 4, "pi+": 3, "pi-": 2}
)
assert dc_flatten.bf == approx(0.5 * (0.0124 ** 2) * (0.692 ** 2))
assert dc_flatten.bf == approx(0.5 * (0.0124**2) * (0.692**2))


def test_DecayChain_string_repr(dc):
Expand Down

0 comments on commit 0a7bdbc

Please sign in to comment.