Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#176)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0)
- [github.com/PyCQA/isort: 5.11.4 → 5.12.0](PyCQA/isort@5.11.4...5.12.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Mar 1, 2023
1 parent 83b3c98 commit 752499d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black

Expand All @@ -19,7 +19,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/PyCQA/isort
rev: 5.11.4
rev: 5.12.0
hooks:
- id: isort

Expand Down
3 changes: 2 additions & 1 deletion src/fastjet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ def get_parents(self, data: ak.Array) -> ak.Array:
data (awkward.highlevel.Array): An Array containing the Jets.
Returns:
awkward.highlevel.Array: Returns an Awkward Array of the same type as the input."""
awkward.highlevel.Array: Returns an Awkward Array of the same type as the input.
"""
raise AssertionError()

def get_child(self, data: ak.Array) -> ak.Array:
Expand Down
1 change: 0 additions & 1 deletion src/fastjet/_generalevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,6 @@ def exclusive_subdmerge(self, data_inp, nsub):
if len(self._cluster_inputs) == 0:
raise TypeError("The Awkward Array is not valid")
for i in range(len(self._cluster_inputs)):

px = self._cluster_inputs[i].px
py = self._cluster_inputs[i].py
pz = self._cluster_inputs[i].pz
Expand Down
16 changes: 0 additions & 16 deletions tests/test_006-jet_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


def test_exclusive_subjets_multi():

array = ak.Array(
[
[
Expand Down Expand Up @@ -44,7 +43,6 @@ def test_exclusive_subjets_multi():


def test_exclusive_subjets_single():

array = ak.Array(
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
Expand All @@ -70,7 +68,6 @@ def test_exclusive_subjets_single():


def test_exclusive_subjets_up_to_single():

array = ak.Array(
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
Expand All @@ -94,7 +91,6 @@ def test_exclusive_subjets_up_to_single():


def test_exclusive_subjets_up_to_multi():

array = ak.Array(
[
[
Expand Down Expand Up @@ -126,7 +122,6 @@ def test_exclusive_subjets_up_to_multi():


def test_exclusive_subdmerge_single():

array = ak.Array(
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
Expand All @@ -145,7 +140,6 @@ def test_exclusive_subdmerge_single():


def test_exclusive_subdmerge_multi():

array = ak.Array(
[
[
Expand Down Expand Up @@ -176,7 +170,6 @@ def test_exclusive_subdmerge_multi():


def test_exclusive_subdmerge_max_multi():

array = ak.Array(
[
[
Expand Down Expand Up @@ -207,7 +200,6 @@ def test_exclusive_subdmerge_max_multi():


def test_exclusive_subdmerge_max_single():

array = ak.Array(
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
Expand All @@ -228,7 +220,6 @@ def test_exclusive_subdmerge_max_single():


def test_n_exclusive_subjets_multi():

array = ak.Array(
[
[
Expand Down Expand Up @@ -257,7 +248,6 @@ def test_n_exclusive_subjets_multi():


def test_n_exclusive_subjets_single():

array = ak.Array(
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
Expand All @@ -278,7 +268,6 @@ def test_n_exclusive_subjets_single():


def test_has_parents_multi():

array = ak.Array(
[
[
Expand Down Expand Up @@ -307,7 +296,6 @@ def test_has_parents_multi():


def test_has_parents_single():

array = ak.Array(
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
Expand All @@ -328,7 +316,6 @@ def test_has_parents_single():


def test_has_child_single():

array = ak.Array(
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
Expand All @@ -349,7 +336,6 @@ def test_has_child_single():


def test_has_child_multi():

array = ak.Array(
[
[
Expand Down Expand Up @@ -378,7 +364,6 @@ def test_has_child_multi():


def test_jet_scale_for_algorithm_multi():

array = ak.Array(
[
[
Expand Down Expand Up @@ -409,7 +394,6 @@ def test_jet_scale_for_algorithm_multi():


def test_jet_scale_for_algorithm_single():

array = ak.Array(
[
{"px": 1.2, "py": 3.2, "pz": 5.4, "E": 2.5, "ex": 0.78},
Expand Down
4 changes: 0 additions & 4 deletions tests/test_007-general.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,6 @@ def test_indexed_subtree_input():


def test_union_8_64_input():

inputs = ak.Array(
[
[
Expand Down Expand Up @@ -1160,7 +1159,6 @@ def test_union_8_64_input():


def test_partitioned_input_NOT_REALLY():

inputs = ak.Array(
[
[
Expand Down Expand Up @@ -1279,7 +1277,6 @@ def test_partitioned_input_NOT_REALLY():


def test_record_input():

inputs = ak.Array(
[
[
Expand Down Expand Up @@ -1418,7 +1415,6 @@ def test_record_input():


def test_func_call__input():

inputs = ak.Array(
[
[
Expand Down

0 comments on commit 752499d

Please sign in to comment.