sagemath/sage

pycodestyle cleanup in sage.graphs.hyperbolicity.pyx

Closed this issue · 9 comments

Fix issues raised by ./sage -tox -e pycodestyle -- src/sage/graphs/hyperbolicity.pyx except E225 (related to the declaration of pointers)

Component: graph theory

Author: David Coudert

Branch/Commit: b15c3b8

Reviewer: Frédéric Chapoton

Issue created by migration from https://trac.sagemath.org/ticket/34009

Commit: 6969a88

New commits:

6969a88trac #34009: improve pycodestyle in hyperbolicity.pyx

Reviewer: Frédéric Chapoton

comment:2

please

(1) add missing dot at the end of some "Return ..." lines

(2) add spaces around % in

print("Current 2 connected component has %d vertices and diameter %d" %(N, D))

then you can set to positive

Branch pushed to git repo; I updated commit sha1. New commits:

b15c3b8trac #34009: review comments

Changed commit from 6969a88 to b15c3b8

comment:4

I fixed all lines with Return... and missing spaces around % in print statements.

Thanks for the review.

Changed branch from public/graphs/34009_hyp to b15c3b8