diff --git a/bmi_topography/api_key.py b/bmi_topography/api_key.py index 286147f..50b1649 100644 --- a/bmi_topography/api_key.py +++ b/bmi_topography/api_key.py @@ -7,7 +7,6 @@ class ApiKey: - """Store an API key to use when fetching topography data from OpenTopography. Parameters diff --git a/bmi_topography/bbox.py b/bmi_topography/bbox.py index 73298f2..c5c7a75 100644 --- a/bmi_topography/bbox.py +++ b/bmi_topography/bbox.py @@ -3,7 +3,6 @@ class BoundingBox: - """Represent a simple latitude-longitude bounding box. Examples diff --git a/bmi_topography/bmi.py b/bmi_topography/bmi.py index ea61da6..fbdf008 100644 --- a/bmi_topography/bmi.py +++ b/bmi_topography/bmi.py @@ -17,7 +17,6 @@ class BmiTopography(Bmi): - """BMI-mediated access to NASA SRTM land elevation data.""" _name = "bmi-topography" diff --git a/bmi_topography/cli.py b/bmi_topography/cli.py index 4bbf24a..ba23961 100644 --- a/bmi_topography/cli.py +++ b/bmi_topography/cli.py @@ -1,4 +1,5 @@ """Command-line interface for bmi-topography """ + import click from .topography import Topography diff --git a/bmi_topography/errors.py b/bmi_topography/errors.py index 981864b..56cfcc1 100644 --- a/bmi_topography/errors.py +++ b/bmi_topography/errors.py @@ -1,26 +1,22 @@ class BmiTopographyError(Exception): - """Base exception for all bmi_topography errors.""" pass class MissingKeyError(BmiTopographyError): - """Raise if an API key cannot be found.""" pass class BadKeyError(BmiTopographyError): - """Raise for an invalid key.""" pass class BadApiKeySource(BmiTopographyError): - """Raise for an invalid API key source.""" pass diff --git a/bmi_topography/topography.py b/bmi_topography/topography.py index ea05622..c3116d3 100644 --- a/bmi_topography/topography.py +++ b/bmi_topography/topography.py @@ -1,4 +1,5 @@ """Base class to access elevation data""" + import os import urllib import warnings @@ -14,7 +15,6 @@ class Topography: - """Fetch and cache land elevation data from OpenTopography.""" SCHEME = "https" diff --git a/examples/bmi-topography_ex.py b/examples/bmi-topography_ex.py index eb45280..1cefbcd 100644 --- a/examples/bmi-topography_ex.py +++ b/examples/bmi-topography_ex.py @@ -1,4 +1,5 @@ """An example used in the README and documentation.""" + import matplotlib.pyplot as plt from bmi_topography import Topography diff --git a/tests/test_bbox.py b/tests/test_bbox.py index 8d918eb..8e07f81 100644 --- a/tests/test_bbox.py +++ b/tests/test_bbox.py @@ -1,4 +1,5 @@ """Test BoundingBox class""" + import pytest from bmi_topography import BoundingBox, Topography diff --git a/tests/test_cli.py b/tests/test_cli.py index 696cd67..fe0a880 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,4 +1,5 @@ """Test bmi-topography command-line interface""" + import pathlib from click.testing import CliRunner diff --git a/tests/test_config.py b/tests/test_config.py index 0c48db5..5a2145f 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,4 +1,5 @@ """Test config file""" + import yaml from bmi_topography import Topography diff --git a/tests/test_topography.py b/tests/test_topography.py index 8400350..9c1d99d 100644 --- a/tests/test_topography.py +++ b/tests/test_topography.py @@ -1,4 +1,5 @@ """Test Topography class""" + import os import pytest