Skip to content

Commit 4ce35de

Browse files
author
Release Manager
committed
sagemathgh-38610: fix and activate E303 check in pyx files This is activating the fix for E303 too many blank lines in all pyx files. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [ ] The title is concise and informative. - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#38610 Reported by: Frédéric Chapoton Reviewer(s): Kwankyu Lee
2 parents 40c469e + 1631dc9 commit 4ce35de

File tree

17 files changed

+10
-75
lines changed

17 files changed

+10
-75
lines changed

src/sage/libs/coxeter3/decl.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ cdef extern from "coxeter/coxtypes.h" namespace "coxtypes":
3333
ctypedef unsigned short Length
3434
ctypedef Ulong StarOp # for numbering star operations
3535

36-
3736
#################
3837
# CoxWord #
3938
#################

src/sage/libs/ecl.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ cdef extern from "ecl/ecl.h":
147147
ecl_character ecl_char(cl_object s, cl_index i)
148148
ecl_character ecl_char_set(cl_object s, cl_index i, ecl_character c)
149149

150-
151150
# S-expr evaluation and function calls
152151

153152
cl_object cl_safe_eval(cl_object form, cl_object env, cl_object value)

src/sage/libs/linbox/fflas.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ cdef extern from "fflas-ffpack/fflas-ffpack.h" namespace "FFLAS":
2828
FflasNoTrans
2929
FflasTrans
3030

31-
3231
ctypedef enum FFLAS_SIDE:
3332
FflasRight
3433

src/sage/libs/m4rie.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ cdef extern from "m4rie/m4rie.h":
173173

174174
void mzd_slice_row_add(mzd_slice_t *A, size_t sourcerow, size_t destrow)
175175

176-
177176
void mzd_slice_row_clear_offset(mzd_slice_t *A, size_t row, size_t coloffset)
178177

179178
void mzd_slice_print(mzd_slice_t *A)

src/sage/libs/meataxe.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ cdef extern from "meataxe.h":
113113
Matrix_t *MatLoad(char *fn) except? NULL
114114
int MatSave(Matrix_t *mat, char *fn) except -1
115115

116-
117116
## Basic Arithmetic ## general rule: dest is changed, src/mat are unchanged!
118117
Matrix_t *MatTransposed(Matrix_t *src) except NULL
119118
Matrix_t *MatAdd(Matrix_t *dest, Matrix_t *src) except NULL

src/sage/libs/ntl/GF2X.pxd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ cdef extern from "ntlwrap.h":
5858
void GF2XModulus_build "build"(GF2XModulus_c F, GF2X_c f) # MUST be called before using the modulus
5959
long GF2XModulus_deg "deg"(GF2XModulus_c F)
6060

61-
6261
GF2X_c GF2XModulus_GF2X "GF2X" (GF2XModulus_c m)
6362

6463
GF2X_c GF2X_IrredPolyMod "IrredPolyMod" (GF2X_c g, GF2XModulus_c F)
@@ -72,7 +71,6 @@ cdef extern from "ntlwrap.h":
7271
void GF2X_PowerXPlusAMod_pre "PowerXPlusAMod"(GF2X_c x, GF2_c a, GF2_c e, GF2XModulus_c F)
7372
void GF2X_PowerXPlusAMod_long_pre "PowerXPlusAMod"(GF2X_c x, GF2_c a, long e, GF2XModulus_c F)
7473

75-
7674
# x = g(h) mod f; deg(h) < n
7775
void GF2X_CompMod "CompMod"(GF2X_c x, GF2X_c g, GF2X_c h, GF2XModulus_c F)
7876
# xi = gi(h) mod f (i=1,2), deg(h) < n.

src/sage/libs/singular/decl.pxd

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ cdef extern from "singular/Singular/libsingular.h":
151151
void (*cfWrite)(number* a, const n_Procs_s* r)
152152
void (*cfNormalize)(number* a, const n_Procs_s* r)
153153

154-
155154
bint (*cfDivBy)(number* a, number* b, const n_Procs_s* r)
156155
bint (*cfEqual)(number* a,number* b, const n_Procs_s* )
157156
bint (*cfIsZero)(number* a, const n_Procs_s* ) # algebraic number comparison with zero
@@ -160,7 +159,6 @@ cdef extern from "singular/Singular/libsingular.h":
160159
bint (*cfGreaterZero)(number* a, const n_Procs_s* )
161160
void (*cfPower)(number* a, int i, number* * result, const n_Procs_s* r) # algebraic number power
162161

163-
164162
ring *extRing
165163
int ch
166164
mpz_ptr modBase
@@ -211,7 +209,6 @@ cdef extern from "singular/Singular/libsingular.h":
211209
int pCompIndex # index of components
212210
unsigned long bitmask # mask for getting single exponents
213211

214-
215212
n_Procs_s* cf # coefficient field/ring
216213
int ref
217214

@@ -793,7 +790,6 @@ cdef extern from "singular/Singular/libsingular.h":
793790

794791
number *nlCopy(number *)
795792

796-
797793
# number to integer handle
798794

799795
long SR_TO_INT(number *)
@@ -813,7 +809,6 @@ cdef extern from "singular/Singular/libsingular.h":
813809

814810
void id_Delete(ideal **, ring *)
815811

816-
817812
# lifting
818813

819814
ideal *idLift(ideal *mod, ideal *submod, ideal **rest, int goodShape, int isSB, int divide)

src/sage/libs/symmetrica/sb.pxi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def mult_schubert_schubert_symmetrica(a, b):
5151
freeall(cres)
5252
raise err
5353

54-
5554
sig_on()
5655
mult_schubert_schubert(ca, cb, cres)
5756
sig_off()

src/sage/libs/symmetrica/schur.pxi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ cdef extern from 'symmetrica/def.h':
2828
INT t_HOMSYM_MONOMIAL(OP a, OP b)
2929
INT t_HOMSYM_ELMSYM(OP a, OP b)
3030

31-
3231
INT t_POWSYM_SCHUR(OP a, OP b)
3332
INT t_SCHUR_POWSYM(OP a, OP b)
3433
INT t_POWSYM_HOMSYM(OP a, OP b)

src/sage/matrix/matrix_modn_dense_template.pxi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,6 @@ cdef class Matrix_modn_dense_template(Matrix_dense):
854854
A.subdivide(*self.subdivisions())
855855
return A
856856

857-
858857
cpdef _add_(self, right):
859858
r"""
860859
Add two dense matrices over `\Z/n\Z`.
@@ -898,7 +897,6 @@ cdef class Matrix_modn_dense_template(Matrix_dense):
898897
sig_off()
899898
return M
900899

901-
902900
cpdef _sub_(self, right):
903901
r"""
904902
Subtract two dense matrices over `\Z/n\Z`.
@@ -1404,7 +1402,6 @@ cdef class Matrix_modn_dense_template(Matrix_dense):
14041402
self.cache(cache_key, g)
14051403
return g
14061404

1407-
14081405
def minpoly(self, var='x', algorithm='linbox', proof=None):
14091406
"""
14101407
Return the minimal polynomial of ``self``.

0 commit comments

Comments
 (0)