Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #122

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
# list of supported hooks: https://pre-commit.com/hooks.html
- id: trailing-whitespace
Expand All @@ -12,20 +12,20 @@ repos:
- id: detect-private-key

# python code formatting/linting
- repo: https://github.com/charliermarsh/ruff-pre-commit
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.0.253"
rev: "v0.8.4"
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 24.10.0
hooks:
- id: black
args: [--line-length, "100"]
# yaml formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types: [yaml]
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
Loading