flake8 fixup
This commit is contained in:
parent
a94c2cae67
commit
3e4e6eead3
29
.flake8
Normal file
29
.flake8
Normal file
@ -0,0 +1,29 @@
|
||||
[flake8]
|
||||
ignore =
|
||||
# E501 line too long
|
||||
E501,
|
||||
# W391 newlines at EOF
|
||||
W391,
|
||||
# E241 multiple spaces after comma
|
||||
E241,
|
||||
# E302 expected 2 newlines
|
||||
E302,
|
||||
# W503 line break before binary operator (to be deprecated)
|
||||
W503,
|
||||
# E265 block comment should start with '# '
|
||||
E265,
|
||||
# E123 closing bracket does not match indentation of opening bracket's line
|
||||
E123,
|
||||
# E124 closing bracket does not match visual indentation
|
||||
E124,
|
||||
# E221 multiple spaces before operator
|
||||
E221,
|
||||
# E201 whitespace after '['
|
||||
E201,
|
||||
# E741 ambiguous variable name 'I'
|
||||
E741,
|
||||
|
||||
|
||||
per-file-ignores =
|
||||
# F401 import without use
|
||||
*/__init__.py: F401,
|
@ -360,8 +360,8 @@ def draw_extrude_rectangle(
|
||||
surface = numpy.delete(range(3), direction)
|
||||
|
||||
dim = numpy.fabs(numpy.diff(rectangle, axis=0).T)[surface]
|
||||
p = numpy.vstack((numpy.array([-1, -1, 1, 1], dtype=float) * dim[0]/2.0,
|
||||
numpy.array([-1, 1, 1, -1], dtype=float) * dim[1]/2.0)).T
|
||||
p = numpy.vstack((numpy.array([-1, -1, 1, 1], dtype=float) * dim[0] * 0.5,
|
||||
numpy.array([-1, 1, 1, -1], dtype=float) * dim[1] * 0.5)).T
|
||||
thickness = distance
|
||||
|
||||
foreground_func = []
|
||||
|
@ -2,7 +2,6 @@ from typing import Callable, Sequence, ClassVar, Self
|
||||
|
||||
import numpy
|
||||
from numpy.typing import NDArray, ArrayLike
|
||||
from numpy import diff, floor, ceil, zeros, hstack, newaxis
|
||||
|
||||
import pickle
|
||||
import warnings
|
||||
|
@ -4,7 +4,7 @@ Readback and visualization methods for Grid class
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
import numpy
|
||||
from numpy.typing import NDArray, ArrayLike
|
||||
from numpy.typing import NDArray
|
||||
|
||||
from . import GridError
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user