Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 12, 2024
1 parent a974344 commit 427ee6a
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions pvoutput/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Init PVoutput library"""

from .pvoutput import * # noqa

__version__ = 0.1
1 change: 1 addition & 0 deletions pvoutput/consts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Constants used in this repo """

import os
from datetime import timedelta
from urllib.parse import urljoin
Expand Down
1 change: 1 addition & 0 deletions pvoutput/daterange.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Date Range Class """

from dataclasses import dataclass
from datetime import date, datetime, timedelta
from typing import Iterable, List, Union
Expand Down
1 change: 1 addition & 0 deletions pvoutput/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Custom Exeception classes """

import requests


Expand Down
1 change: 1 addition & 0 deletions pvoutput/grid_search/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
""" Init for grid saerch module """

from .grid_search import GridSearch
1 change: 1 addition & 0 deletions pvoutput/grid_search/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- Jamie Taylor <[email protected]>
- First Authored: 2021-11-16
"""

import argparse
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions pvoutput/grid_search/clip.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Clipping function for coordinates"""

from typing import Iterable, Optional, Tuple, Union

import geopandas as gpd
Expand Down
1 change: 1 addition & 0 deletions pvoutput/grid_search/natural_earth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Retrieve Natural Earth world boundaries."""

import logging
import os
from io import BytesIO
Expand Down
1 change: 1 addition & 0 deletions pvoutput/mapscraper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Code for scraping for pv systems """

import re
from copy import copy
from typing import Iterable, Optional, Union
Expand Down
1 change: 1 addition & 0 deletions pvoutput/prcoess.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Function to process data """

import logging
from io import StringIO

Expand Down
3 changes: 2 additions & 1 deletion pvoutput/pvoutput.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Main PV Output class to get data from pvoutput.org """

import logging
import os
import time
Expand Down Expand Up @@ -924,7 +925,7 @@ def _download_multiple_worker(
)
else:
total_rows += len(timeseries)
_LOG.info(f'Adding timezone {timezone} to {total_rows} rows')
_LOG.info(f"Adding timezone {timezone} to {total_rows} rows")
timeseries = timeseries.tz_localize(timezone)
_LOG.info(
"system_id: %d: %d rows retrieved: %s to %s",
Expand Down
1 change: 1 addition & 0 deletions pvoutput/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Util functions"""

import logging
import os
import sys
Expand Down
1 change: 1 addition & 0 deletions scripts/scrape_country_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Prints and saves a dictionary mapping the country names to
their codes.
"""

import json

import urllib3
Expand Down

0 comments on commit 427ee6a

Please sign in to comment.