Skip to content

Commit 92dd5e4

Browse files
author
Rodrigo Almeida
authored
Fix flake8 (#450)
* lint is flake8 * Remove - in order to not ignore exit code * Add extended ignores for flake8 * Rm unused vars * Remove extra # * Rm unused var * Add rio-cogeo dependency * Fix undefined variable, ignore ambigous name * Rm flake8 * Fix unused imports F401
1 parent 00fae0b commit 92dd5e4

File tree

25 files changed

+29
-52
lines changed

25 files changed

+29
-52
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jobs:
4747
run: tox -e lint
4848
- name: Format with tox
4949
run: tox -e format
50-
- name: Flake8 with tox
51-
run: tox -e flake8
5250
- name: Test with tox
5351
run: tox -e test
5452

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import sys
1515

1616
sys.path.insert(0, os.path.abspath(".."))
17-
import numpy as np
17+
import numpy as np # noqa: F401
1818
import sphinx_bootstrap_theme
1919

2020
# -- Project information -----------------------------------------------------

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def check_output(cmd):
5252
"pyproj>=2.1",
5353
"PyYAML>=5.4",
5454
"rasterio>=1.0.23",
55+
"rio-cogeo>=3.0.2",
5556
"requests==2.22.0",
5657
"rtree>=0.9.3",
5758
"scikit-image>=0.16.2",

solaris/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from . import data, utils, vector
1+
from . import data, utils, vector # noqa: F401
22

33
# data, eval, preproc, raster, tile, have gdal in them need to replace with rasterio
44
__version__ = "0.0.1"

solaris/eval/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from . import base, iou, pixel, vector
1+
from . import base, iou, pixel, vector # noqa: F401

solaris/eval/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ def eval_iou_spacenet_csv(
111111
scoring_dict_list = []
112112
self.ground_truth_GDF[iou_field] = 0.0
113113
iou_index = self.ground_truth_GDF.columns.get_loc(iou_field)
114-
id_cols = 2
115-
ground_truth_ids = self.ground_truth_GDF.iloc[:, :id_cols]
116114

117115
for imageID in tqdm(imageIDList):
118116
self.ground_truth_GDF_Edit = self.ground_truth_GDF[

solaris/preproc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from . import image, label, optical, pipesegment, sar
1+
from . import image, label, optical, pipesegment, sar # noqa: F401

solaris/preproc/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pandas as pd
1010
from osgeo import gdal_array
1111

12-
from .pipesegment import LoadSegment, MergeSegment, PipeSegment
12+
from .pipesegment import LoadSegment, PipeSegment
1313

1414

1515
class Image:

solaris/preproc/label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import shapely.wkt
55

66
from ..vector.polygon import convert_poly_coords
7-
from .pipesegment import LoadSegment, MergeSegment, PipeSegment
7+
from .pipesegment import LoadSegment, PipeSegment
88

99

1010
class LoadString(LoadSegment):

solaris/preproc/optical.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
import numpy as np
44

5-
from . import image
65
from .image import Image
7-
from .pipesegment import LoadSegment, MergeSegment, PipeSegment
6+
from .pipesegment import PipeSegment
87

98

109
class RGBToHSL(PipeSegment):

0 commit comments

Comments
 (0)