Skip to content

Commit 9d72e97

Browse files
committed
run black
1 parent 15b7622 commit 9d72e97

File tree

9 files changed

+11
-3
lines changed

9 files changed

+11
-3
lines changed

pyinfraformat/core/coord_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Utilities to handle coordinates and transformations."""
2+
23
import logging
34
from copy import deepcopy
45
from functools import lru_cache

pyinfraformat/core/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Core function for pyinfraformat."""
2+
23
import fnmatch
34
import logging
45
import os
@@ -153,7 +154,6 @@ def filter_holes(self, *, bbox=None, hole_type=None, start=None, end=None, fmt=N
153154

154155
def _filter_coordinates(self, holes, bbox):
155156
"""Filter object by coordinates."""
156-
# pylint: disable=no-self-use
157157
xmin, xmax, ymin, ymax = bbox
158158
filtered_holes = []
159159
for hole in holes:
@@ -174,7 +174,7 @@ def _filter_coordinates(self, holes, bbox):
174174

175175
def _filter_type(self, holes, hole_type):
176176
"""Filter object by survey abbreviation (type)."""
177-
# pylint: disable=no-self-use
177+
178178
filtered_holes = []
179179
if isinstance(hole_type, str):
180180
hole_type = [hole_type]
@@ -189,7 +189,7 @@ def _filter_type(self, holes, hole_type):
189189

190190
def _filter_date(self, holes, start=None, end=None, fmt=None):
191191
"""Filter object by datetime."""
192-
# pylint: disable=no-self-use
192+
193193
if isinstance(start, str) and fmt is None:
194194
start = pd.to_datetime(start)
195195
elif isinstance(start, str) and fmt is not None:

pyinfraformat/core/io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
TIMEOUT = 36_000
2929

30+
3031
# pylint: disable=redefined-argument-from-local
3132
def from_infraformat(
3233
path=None, encoding="auto", extension=None, errors="ignore_lines", save_ignored=False

pyinfraformat/core/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""General information concerning Finnish Infraformat."""
2+
23
import logging
34

45
__all__ = ["identifiers", "print_info"]

pyinfraformat/plots/holes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Plot diagrams for a single hole."""
2+
23
import gc
34
import io
45
import logging

pyinfraformat/plots/icons/hole_icons.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
run main() for creation.
2020
2121
"""
22+
2223
import numpy as np
2324
import svgwrite
2425

pyinfraformat/plots/maps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Plot a html folium map from holes object."""
2+
23
from itertools import cycle
34
from pathlib import Path
45

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Python setup information."""
2+
23
import codecs
34
import os
45
import re

tests/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Helper functions for tests."""
2+
23
from pyinfraformat import Holes, from_gtk_wfs
34

45

0 commit comments

Comments
 (0)