Skip to content

Commit b220333

Browse files
author
Release Manager
committed
gh-35091: fix and activate W391 in pyx files <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes #1234" use "Introduce new method to calculate 1+1" --> ### 📚 Description Fixes #34929 Activate the check for pycodestyle W391 in pyx files <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If it resolves an open issue, please link to the issue here. For example "Closes #1337" --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [x] I have made sure that the title is self-explanatory and the description concisely explains the PR. - [x] I have linked an issue or discussion. ### ⌛ Dependencies <!-- List all open pull requests that this PR logically depends on --> <!-- - #xyz: short description why this is a dependency - #abc: ... --> URL: #35091 Reported by: Frédéric Chapoton Reviewer(s): Edgar Costa
2 parents b0df140 + 71925b9 commit b220333

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
@@ -124,7 +124,7 @@ description =
124124
# See https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
125125
deps = pycodestyle
126126
commands = pycodestyle --select E111,E211,E306,E401,E701,E702,E703,W291,W391,W605,E711,E712,E713,E721,E722 {posargs:{toxinidir}/sage/}
127-
pycodestyle --select E111,E306,E401,E703,W605,E712,E713,E721,E722 --filename *.pyx {posargs:{toxinidir}/sage/}
127+
pycodestyle --select E111,E306,E401,E703,W391,W605,E712,E713,E721,E722 --filename *.pyx {posargs:{toxinidir}/sage/}
128128
129129
[pycodestyle]
130130
max-line-length = 160

0 commit comments

Comments
 (0)