Skip to content

Commit 81bec94

Browse files
committed
fix and activate W391 in cython files
1 parent 047281e commit 81bec94

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,4 +531,3 @@ cdef pent_verify(factory, tuple mp_params):
531531
feq_verif(factory, worker_results, fvars, Nk_ij, id_anyon, nonuple)
532532
if i % 50000000 == 0 and i and verbose:
533533
print("{:5d}m equations checked... {} potential misses so far...".format(i // 1000000, len(worker_results)))
534-

src/sage/algebras/fusion_rings/poly_tup_engine.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,4 +576,3 @@ cpdef tuple poly_tup_sortkey(tuple eq_tup):
576576
key.append(-exp._data[2*i])
577577
key.append(exp._data[2*i+1])
578578
return tuple(key)
579-

src/sage/algebras/fusion_rings/shm_managers.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,4 +773,3 @@ def make_FvarsHandler(n, field, idx_map, init_data):
773773
sage: f.shutdown_worker_pool()
774774
"""
775775
return FvarsHandler(n, field, idx_map, init_data=init_data)
776-

src/sage/numerical/backends/generic_backend.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1819,4 +1819,3 @@ cpdef GenericBackend get_solver(constraint_generation = False, solver = None, ba
18191819

18201820
else:
18211821
raise ValueError("'solver' should be set to 'GLPK', 'GLPK/exact', 'Coin', 'CPLEX', 'CVXOPT', 'Gurobi', 'PPL', 'SCIP', 'InteractiveLP', None (in which case the default one is used), or a callable.")
1822-

src/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ description =
116116
# See https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
117117
deps = pycodestyle
118118
commands = pycodestyle --select E111,E306,E401,E701,E702,E703,W291,W391,W605,E711,E712,E713,E721,E722 {posargs:{toxinidir}/sage/}
119-
pycodestyle --select E111,E306,E401,E703,W605,E712,E713,E721,E722 --filename *.pyx {posargs:{toxinidir}/sage/}
119+
pycodestyle --select E111,E306,E401,E703,W391,W605,E712,E713,E721,E722 --filename *.pyx {posargs:{toxinidir}/sage/}
120120
121121
[pycodestyle]
122122
max-line-length = 160

0 commit comments

Comments
 (0)