Skip to content

Commit

Permalink
add flake8 rules in ruff (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Apr 25, 2023
1 parent 94f8b53 commit aed8893
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ select = [
"D1", # pydocstyle errors
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # flake8
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
Expand Down
2 changes: 1 addition & 1 deletion rio_tiler/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from rasterio.coords import BoundingBox
from rasterio.crs import CRS
from rasterio.dtypes import dtype_ranges
from rasterio.enums import ColorInterp, Resampling
from rasterio.enums import ColorInterp
from rasterio.io import MemoryFile
from rasterio.plot import reshape_as_image
from rasterio.transform import from_bounds
Expand Down
2 changes: 1 addition & 1 deletion rio_tiler/mosaic/methods/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import abc
from dataclasses import dataclass, field
from typing import Optional, Tuple
from typing import Optional

import numpy

Expand Down
2 changes: 1 addition & 1 deletion rio_tiler/mosaic/methods/defaults.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""rio_tiler.mosaic.methods.defaults: default mosaic filling methods."""

from dataclasses import dataclass, field
from typing import List, Optional, Tuple
from typing import List, Optional

import numpy

Expand Down
1 change: 0 additions & 1 deletion rio_tiler/mosaic/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from inspect import isclass
from typing import Any, Callable, List, Optional, Sequence, Tuple, Type, Union, cast

import numpy
from rasterio.crs import CRS

from rio_tiler.constants import MAX_THREADS
Expand Down
1 change: 0 additions & 1 deletion rio_tiler/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""rio_tiler.utils: utility functions."""

import os
import warnings
from io import BytesIO
from typing import Any, Dict, Generator, List, Optional, Sequence, Tuple, Union
Expand Down
1 change: 0 additions & 1 deletion tests/benchmarks/test_benchmarks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Benchmark."""

import os

import morecantile
import pytest
Expand Down

0 comments on commit aed8893

Please sign in to comment.