Skip to content

Commit

Permalink
PEP8 fixes through flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed May 25, 2020
1 parent 78cb9d8 commit db8bab8
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 28 deletions.
3 changes: 1 addition & 2 deletions isogeo_pysdk/api/routes_about.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: UTF-8 -*-
#! python3 # noqa E265

"""Module to easily get versions about Isogeo platform components."""
Expand Down Expand Up @@ -123,7 +122,7 @@ def scan(self) -> str:
req_session.proxies = self.proxies
# request
req_api_version = req_session.get(
url="{}://daemons.isogeo.com/about".format(self.protocol, self.api_url),
url="{}://daemons.isogeo.com/about".format(self.protocol),
proxies=self.proxies,
verify=self.ssl,
)
Expand Down
6 changes: 2 additions & 4 deletions isogeo_pysdk/api/routes_feature_attributes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: UTF-8 -*-
#! python3 # noqa E265

"""
Expand Down Expand Up @@ -202,9 +201,8 @@ def create(
if not attribute.dataType:
logger.warning(
ValueError(
"Attribute dataType is missing. An empty string '\"\"' (but != None) will be used.".format(
attribute.dataType
)
"Attribute dataType is missing. "
"An empty string '\"\"' (but != None) will be used."
)
)
attribute.dataType = ""
Expand Down
2 changes: 0 additions & 2 deletions isogeo_pysdk/api/routes_keyword.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: UTF-8 -*-
#! python3 # noqa E265

"""
Expand All @@ -13,7 +12,6 @@

# Standard library
import logging
from functools import lru_cache

# submodules
from isogeo_pysdk.checker import IsogeoChecker
Expand Down
3 changes: 0 additions & 3 deletions isogeo_pysdk/api/routes_metadata_bulk.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: UTF-8 -*-
#! python3 # noqa E265

"""
Expand All @@ -11,12 +10,10 @@

# Standard library
import logging
from collections import defaultdict

# submodules
from isogeo_pysdk.checker import IsogeoChecker
from isogeo_pysdk.decorators import ApiDecorators
from isogeo_pysdk.enums import BulkActions, BulkTargets
from isogeo_pysdk.models import BulkReport, BulkRequest, Metadata
from isogeo_pysdk.utils import IsogeoUtils

Expand Down
2 changes: 0 additions & 2 deletions isogeo_pysdk/models/bulk_request.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: UTF-8 -*-
#! python3 # noqa E265

"""
Expand All @@ -16,7 +15,6 @@

# other model
from isogeo_pysdk.enums import BulkActions, BulkTargets
from isogeo_pysdk.models.metadata import Metadata


# #############################################################################
Expand Down
3 changes: 1 addition & 2 deletions isogeo_pysdk/models/metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: UTF-8 -*-
#! python3 # noqa E265

"""
Expand Down Expand Up @@ -625,7 +624,7 @@ def coordinateSystem(self) -> CoordinateSystem:
@coordinateSystem.setter
def coordinateSystem(self, coordinateSystem: Union[dict, CoordinateSystem]):
"""Sets the coordinate systems of this Metadata.
:param Union[dict, CoordinateSystem] coordinateSystem: coordinate-system to be set
"""
if isinstance(coordinateSystem, dict):
Expand Down
2 changes: 0 additions & 2 deletions isogeo_pysdk/samples/current/add_format_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: UTF-8 -*-
#! python3 # noqa E265


Expand All @@ -16,7 +15,6 @@
# ##################################

# Standard library
import logging
from os import environ
from timeit import default_timer

Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ exclude =
# This contains builds of flake8 that we don't want to check
dist,
# This contains local virtual environments
.venv*
ignore = C901,E121,E123,E126,E203,E226,E231,E24,E501,E704,W503,W504
.venv*,.tox
ignore = C901,E121,E123,E126,E203,E226,E231,E24,E501,E704,W503,W504,W505
max-complexity = 20
max-doc-length = 130
max-line-length = 100
Expand Down
10 changes: 1 addition & 9 deletions tests/test_about.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: UTF-8 -*-
#! python3 # noqa E265

"""Usage from the repo root folder:
Expand All @@ -15,18 +14,11 @@
# ##################################

# Standard library
import logging
import unittest
import urllib3
from os import environ
from pathlib import Path
from socket import gethostname
from sys import _getframe, exit
from sys import _getframe
from time import gmtime, sleep, strftime

# 3rd party
from dotenv import load_dotenv

# module target
from isogeo_pysdk import ApiAbout

Expand Down

0 comments on commit db8bab8

Please sign in to comment.