Skip to content

Commit

Permalink
activating more pycodestyle checks
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed May 10, 2023
1 parent 8aa7213 commit 6355f71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/sage/combinat/designs/difference_family.py
Original file line number Diff line number Diff line change
Expand Up @@ -1525,11 +1525,12 @@ def relative_difference_set_from_homomorphism(q, N, d, check=True, return_group=
if check:
H = _get_submodule_of_order(G2, (q-1) // d)
assert is_relative_difference_set(second_diff_set, G2, H, ((q**N-1) // (q-1), (q-1) // d, q**(N-1), q**(N-2) * d))

if return_group:
return G2, second_diff_set
return second_diff_set


def is_relative_difference_set(R, G, H, params, verbose=False):
r"""
Check if ``R`` is a difference set of ``G`` relative to ``H``, with the given parameters.
Expand Down
2 changes: 1 addition & 1 deletion src/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ description =
# W605: invalid escape sequence ‘x’
# See https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
deps = pycodestyle
commands = pycodestyle --select E111,E211,E271,E306,E401,E502,E701,E702,E703,W291,W391,W605,E711,E712,E713,E721,E722 {posargs:{toxinidir}/sage/}
commands = pycodestyle --select E111,E211,E271,E303,E306,E401,E502,E701,E702,E703,E714,W291,W293,W391,W605,E711,E712,E713,E721,E722 {posargs:{toxinidir}/sage/}
pycodestyle --select E111,E306,E401,E703,W293,W391,W605,E712,E713,E714,E721,E722 --filename *.pyx {posargs:{toxinidir}/sage/}
[pycodestyle]
Expand Down

0 comments on commit 6355f71

Please sign in to comment.