Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
hwang6 committed Oct 24, 2024
1 parent 40cc177 commit 70d5f89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
@author: travis
"""
import os
import re

from setuptools import setup, find_packages

Expand Down
10 changes: 7 additions & 3 deletions tests/test_cli/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
"""CLI tests."""
# pylint: disable=too-many-lines
import sys
import pathlib
import tempfile
from difflib import SequenceMatcher
Expand Down Expand Up @@ -253,6 +254,9 @@ def test_make_maps(
supply_curve_file = map_supply_curve_wind.as_posix()
elif tech == "solar":
supply_curve_file = map_supply_curve_solar.as_posix()
else:
print("No tech type is assigned.")
sys.exit(1)

with tempfile.TemporaryDirectory() as tempdir:
output_path = pathlib.Path(tempdir)
Expand Down Expand Up @@ -952,7 +956,7 @@ def test_histogram_default_bins(
'-W', 75,
'-H', 15
],
terminal_width=1000 # needed for height to be applied correctly
terminal_width=1000 # needed for height to be applied correctly
)
assert result.exit_code == 0, (
f"Command failed with error {result.exception}"
Expand Down Expand Up @@ -987,7 +991,7 @@ def test_histogram_5bins(
'-H', 15,
'-N', 5
],
terminal_width=1000 # needed for height to be applied correctly
terminal_width=1000 # needed for height to be applied correctly
)
assert result.exit_code == 0, (
f"Command failed with error {result.exception}"
Expand Down Expand Up @@ -1022,7 +1026,7 @@ def test_histogram_nonnumeric_column(
'-W', 75,
'-H', 15
],
terminal_width=1000 # needed for height to be applied correctly
terminal_width=1000 # needed for height to be applied correctly
)
assert result.exit_code == 0, (
f"Command failed with error {result.exception}"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def test_map_geodataframe_column_boundaries_kwargs(
@pytest.mark.maptest
@pytest.mark.filterwarnings("ignore:Geometry is in a geographic:UserWarning")
def test_map_geodataframe_polygons(
data_dir_test, supply_curve_gdf, county_background_gdf, states_gdf,
*, data_dir_test, supply_curve_gdf, county_background_gdf, states_gdf,
counties_gdf, compare_images_approx
):
"""
Expand Down

0 comments on commit 70d5f89

Please sign in to comment.