Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 9, 2023
1 parent ae2437c commit e3b0130
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tests/unit/conservation_rules/test_c_parity.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ def test_c_parity_multiparticle_boson(rule_input, expected):
),
(s_magnitude + l_magnitude) % 2 == abs(c_parity - 1) / 2,
)
for c_parity, s_magnitude, l_magnitude in product(
[-1, 1], range(5), range(5)
)
for c_parity, s_magnitude, l_magnitude in product([-1, 1], range(5), range(5))
],
)
def test_c_parity_multiparticle_fermion(rule_input, expected):
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/conservation_rules/test_parity_conservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
NodeQuantumNumbers.l_magnitude(l_magnitude),
parity_in == parity_out1 * (-1) ** (l_magnitude),
)
for parity_in, parity_out1, l_magnitude in product(
[-1, 1], [-1, 1], range(5)
)
for parity_in, parity_out1, l_magnitude in product([-1, 1], [-1, 1], range(5))
],
)
def test_parity_conservation(in_parities, out_parities, l_magnitude, expected):
Expand Down

0 comments on commit e3b0130

Please sign in to comment.