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 10, 2025
1 parent c7d3690 commit b2b506c
Show file tree
Hide file tree
Showing 29 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion ocf_datapipes/batch/fake/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" init """
"""init"""
2 changes: 1 addition & 1 deletion ocf_datapipes/batch/fake/fake_batch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Make fake batch """
"""Make fake batch"""

from datetime import datetime, timezone
from typing import Optional, Union
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/batch/fake/gsp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Make fake GSP data """
"""Make fake GSP data"""

from datetime import datetime

Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/batch/fake/nwp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Make fake NWP data """
"""Make fake NWP data"""

from datetime import datetime

Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/batch/fake/pv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Make fake PV data """
"""Make fake PV data"""

from datetime import datetime

Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/batch/fake/satellite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Make fake Satellite data """
"""Make fake Satellite data"""

from datetime import datetime

Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/batch/fake/sun.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Make fake Sun data """
"""Make fake Sun data"""

import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/batch/fake/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Utils Functions to for fake data """
"""Utils Functions to for fake data"""

from datetime import timedelta

Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/config/load.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Loading configuration functions """
"""Loading configuration functions"""

import logging
from typing import Union
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/config/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Configuration model for the dataset.
"""Configuration model for the dataset.
All paths must include the protocol prefix. For local files,
it's sufficient to just start with a '/'. For aws, start with 's3://',
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/config/save.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Save functions for the configuration model"""
"""Save functions for the configuration model"""

import json
import logging
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/load/gsp/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" Load GSP data from file or database """
"""Load GSP data from file or database"""
2 changes: 1 addition & 1 deletion ocf_datapipes/load/gsp/database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Function to get data from live database """
"""Function to get data from live database"""

import logging
import os
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/load/gsp/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Utils for GSP loading"""
"""Utils for GSP loading"""

from typing import Optional

Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/load/pv/database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Data pipes and utils for getting PV data from database"""
"""Data pipes and utils for getting PV data from database"""

import logging
import os
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/load/pv/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Util functions for PV data source"""
"""Util functions for PV data source"""

from typing import Optional

Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/load/wind/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Util functions for Wind data source"""
"""Util functions for Wind data source"""

import numpy as np
import pandas as pd
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/transform/xarray/pv/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" PV xarray functions """
"""PV xarray functions"""
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Remove PV data """
"""Remove PV data"""

import logging
from datetime import timedelta
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/utils/pvlive.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Functions used to query the PVlive api """
"""Functions used to query the PVlive api"""

import logging
from concurrent import futures
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/utils/split/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" split functions """
"""split functions"""
2 changes: 1 addition & 1 deletion ocf_datapipes/utils/split/method.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Methods for splitting data into train, validation and test """
"""Methods for splitting data into train, validation and test"""

from typing import List, Tuple

Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/utils/split/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Model for splitting data """
"""Model for splitting data"""

from typing import List

Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/utils/split/split.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Function to split datasets up """
"""Function to split datasets up"""

import logging
from collections import namedtuple
Expand Down
2 changes: 1 addition & 1 deletion ocf_datapipes/visualisation/batch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" The idea is visualise one of the batches
"""The idea is visualise one of the batches
This is a bit of a work in progress, but the idea is to visualise the batch in a markdown file.
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Usual setup file for package """
"""Usual setup file for package"""

# read the contents of your README file
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion tests/load/gsp/test_gsp_live.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Test for loading pv data from database """
"""Test for loading pv data from database"""

from datetime import datetime, timedelta, timezone

Expand Down
2 changes: 1 addition & 1 deletion tests/load/pv/test_pv_database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Test for loading pv data from database """
"""Test for loading pv data from database"""

from datetime import timedelta

Expand Down
2 changes: 1 addition & 1 deletion tests/load/test_load_satellite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Loading satellite tests
"""Loading satellite tests
1. Open HRV data
2. Open data
Expand Down

0 comments on commit b2b506c

Please sign in to comment.