Skip to content

Commit

Permalink
Make pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Mar 22, 2024
1 parent a1a9d7f commit b56e421
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion bmi_topography/api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class ApiKey:

"""Store an API key to use when fetching topography data from OpenTopography.
Parameters
Expand Down
1 change: 0 additions & 1 deletion bmi_topography/bbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@


class BoundingBox:

"""Represent a simple latitude-longitude bounding box.
Examples
Expand Down
1 change: 0 additions & 1 deletion bmi_topography/bmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


class BmiTopography(Bmi):

"""BMI-mediated access to NASA SRTM land elevation data."""

_name = "bmi-topography"
Expand Down
1 change: 1 addition & 0 deletions bmi_topography/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Command-line interface for bmi-topography """

import click

from .topography import Topography
Expand Down
4 changes: 0 additions & 4 deletions bmi_topography/errors.py
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion bmi_topography/topography.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base class to access elevation data"""

import os
import urllib
import warnings
Expand All @@ -14,7 +15,6 @@


class Topography:

"""Fetch and cache land elevation data from OpenTopography."""

SCHEME = "https"
Expand Down
1 change: 1 addition & 0 deletions examples/bmi-topography_ex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example used in the README and documentation."""

import matplotlib.pyplot as plt

from bmi_topography import Topography
Expand Down
1 change: 1 addition & 0 deletions tests/test_bbox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test BoundingBox class"""

import pytest

from bmi_topography import BoundingBox, Topography
Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test bmi-topography command-line interface"""

import pathlib

from click.testing import CliRunner
Expand Down
1 change: 1 addition & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test config file"""

import yaml

from bmi_topography import Topography
Expand Down
1 change: 1 addition & 0 deletions tests/test_topography.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Topography class"""

import os

import pytest
Expand Down

0 comments on commit b56e421

Please sign in to comment.