Skip to content

Commit 4f6cfde

Browse files
committed
fix flake, pylint, black
1 parent 6d4b2de commit 4f6cfde

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

permuta/perm_sets/permset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def _sigma_0_candidates(b1: Perm, b2: Perm) -> Iterator[Perm]:
277277
yield Perm(result)
278278

279279
@staticmethod
280-
def _sigma_1_candidates(b1: Perm, b2: Perm) -> Iterator[Perm]:
280+
def _sigma_1_candidates(b1: Perm, b2: Perm) -> Iterator[Perm]: # pylint: disable=R0914
281281
"""Generate candidates where left and right patterns overlap by one element.
282282
283283
Generates all permutations of length |b1| + |b2| - 1 where the first |b1|
@@ -289,7 +289,7 @@ def _sigma_1_candidates(b1: Perm, b2: Perm) -> Iterator[Perm]:
289289

290290
# The shared position is at index n1 - 1
291291
# Its value v must satisfy: v = b1[-1] + b2[0]
292-
# (it must be at rank b1[-1] among left values and rank b2[0] among right values)
292+
# (it must be at rank b1[-1] among left and rank b2[0] among right values)
293293
v = b1[-1] + b2[0]
294294

295295
# Values less than v: {0, ..., v-1}

tests/perm_sets/test_av.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ def test_right_juxtaposition_enumeration():
326326

327327
def test_right_juxtaposition_multiple_basis_elements():
328328
"""Test juxtaposition with multiple basis elements."""
329-
av_21_12 = Av(Basis(Perm((1, 0)), Perm((0, 1)))) # Only contains empty and singleton
329+
# Only contains empty and singleton permutations
330+
av_21_12 = Av(Basis(Perm((1, 0)), Perm((0, 1))))
330331
av_132 = Av(Basis(Perm((0, 2, 1))))
331332
result = av_21_12.right_juxtaposition(av_132)
332333
# The result should be a valid Av object with a minimized basis

0 commit comments

Comments
 (0)