Skip to content

Commit 618bedf

Browse files
Merge pull request #206 from fchapoton/fine_tuning_lint
fine tuning the cython-linter + fix W391 code
2 parents 54beefc + f7cb70b commit 618bedf

13 files changed

+2
-14
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.11", "3.12"]
10+
python-version: ["3.12"]
1111
steps:
1212
- uses: actions/checkout@v4
1313

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ build-backend = "mesonpy"
4141

4242
[tool.cython-lint]
4343
max-line-length = 120
44-
ignore = ['E114','E117','E127','E128','E129','E202','E221','E222','E231','E261','E262','E265','E302','E303','E306','E501','E701','E703','E711','E722','E731','E741','E743','W391']
44+
ignore = ['E114','E117','E127','E128','E129','E202','E221','E222','E231','E261','E262','E265','E501','E711','E722','E731','E741','E743']
4545
exclude = 'src/flint/flintlib/.*'
4646

4747
[tool.spin]

src/flint/types/acb.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ cdef any_as_acb_or_notimplemented(x):
9797
# return acb(x)
9898

9999

100-
101100
# Copied with modifications from sage/rings/complex_arb.pyx
102101
@cython.internal
103102
cdef class IntegrationContext:

src/flint/types/acb_poly.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -424,4 +424,3 @@ cdef class acb_poly(flint_poly):
424424
arf_set_mag(arb_midref((<arb>r).val), m)
425425
mag_clear(m)
426426
return r
427-

src/flint/types/acb_series.pxd

-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ cdef class acb_series(flint_series):
77
cdef long prec
88
cpdef long length(self)
99
cpdef valuation(self)
10-

src/flint/types/acb_series.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -854,4 +854,3 @@ cdef class acb_series(flint_series):
854854
acb_poly_lambertw_series((<acb_series>u).val, (<acb_series>s).val, (<fmpz>k).val, 0, cap, getprec())
855855
(<acb_series>u).prec = cap
856856
return u
857-

src/flint/types/arb.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -2656,4 +2656,3 @@ cdef class arb(flint_scalar):
26562656
arb_hypgeom_coulomb(NULL, (<arb>G).val,
26572657
(<arb>l).val, (<arb>eta).val, (<arb>self).val, getprec())
26582658
return G
2659-

src/flint/types/fmpq_mat.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -506,5 +506,3 @@ cdef class fmpq_mat(flint_mat):
506506
if n % 2:
507507
v *= self
508508
return v
509-
510-

src/flint/types/fmpq_series.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -525,4 +525,3 @@ cdef class fmpq_series(flint_series):
525525
fmpq_poly_tanh_series((<fmpq_series>u).val, (<fmpq_series>s).val, cap)
526526
(<fmpq_series>u).prec = cap
527527
return u
528-

src/flint/types/fmpz.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -1021,4 +1021,3 @@ cdef class fmpz(flint_scalar):
10211021
if ttype == FMPZ_TMP:
10221022
fmpz_clear(tval)
10231023
return fmpz(v)
1024-

src/flint/types/fmpz_poly.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -647,4 +647,3 @@ cdef class fmpz_poly(flint_poly):
647647
return int(i)
648648
libc.stdlib.free(phi)
649649
return 0
650-

src/flint/types/fmpz_series.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -358,4 +358,3 @@ cdef class fmpz_series(flint_series):
358358
fmpz_poly_revert_series((<fmpz_series>u).val, (<fmpz_series>s).val, cap)
359359
(<fmpz_series>u).prec = cap
360360
return u
361-

src/flint/types/nmod_series.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ from flint.flint_base.flint_base cimport flint_series
22

33
cdef class nmod_series(flint_series):
44
pass
5-

0 commit comments

Comments
 (0)