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 Feb 24, 2025
1 parent f63022f commit 5670fab
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 12 deletions.
3 changes: 2 additions & 1 deletion pvliveconsumer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
""" Pv Consumer"""
"""Pv Consumer"""

__version__ = "1.2.5"
2 changes: 1 addition & 1 deletion pvliveconsumer/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Application for getting live GSP data
"""Application for getting live GSP data
1. Load GSP ids from database
2. For each site, find the most recent data in a database
Expand Down
2 changes: 1 addition & 1 deletion pvliveconsumer/backup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Create gsp data from nataionl yield"""
"""Create gsp data from nataionl yield"""

import logging
from datetime import datetime
Expand Down
3 changes: 2 additions & 1 deletion pvliveconsumer/gsps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" GSP functions """
"""GSP functions"""

import logging
from datetime import datetime, timedelta, timezone
from typing import List, Optional
Expand Down
3 changes: 2 additions & 1 deletion pvliveconsumer/nightime.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Add zeros to nightime """
"""Add zeros to nightime"""

import logging
import os
from datetime import datetime, timedelta
Expand Down
3 changes: 2 additions & 1 deletion pvliveconsumer/time.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Time helper functions """
"""Time helper functions"""

import logging
from datetime import datetime, timezone

Expand Down
1 change: 0 additions & 1 deletion scripts/gsp_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
4. update database
"""


import json
from datetime import datetime, timezone

Expand Down
3 changes: 2 additions & 1 deletion scripts/gsp_name_update/merge_labels.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Merge labels """
"""Merge labels"""

# import the files

import pandas as pd
Expand Down
3 changes: 2 additions & 1 deletion scripts/gsp_name_update/new_labels.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" New lables for gsps """
"""New lables for gsps"""

# get the
# or load file using [this](https://www.geeksforgeeks.org/read-json-file-using-python/)

Expand Down
1 change: 0 additions & 1 deletion scripts/gsp_name_update/update_region_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
2. update database
"""


import json
import os.path

Expand Down
3 changes: 2 additions & 1 deletion scripts/v3_to_v4/data/get_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Get GSP regions from National Grid API"""
"""Get GSP regions from National Grid API"""

from urllib.request import urlopen

import geopandas as gpd
Expand Down
3 changes: 2 additions & 1 deletion scripts/v3_to_v4/update_installed_capacity.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
""" Update installed capacity in database
"""Update installed capacity in database
We now do this in the app, so we dont need to run this anymore
"""

import json
import os

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Setup file for pvliveconsumer package."""

from pathlib import Path

from setuptools import find_packages, setup
Expand Down

0 comments on commit 5670fab

Please sign in to comment.