Skip to content

Commit 7552f65

Browse files
[pre-commit.ci] pre-commit autoupdate (#303) #minor
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.0 → v0.11.12](astral-sh/ruff-pre-commit@v0.8.0...v0.11.12) - [github.com/psf/black: 24.10.0 → 25.1.0](psf/black@24.10.0...25.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d675feb commit 7552f65

38 files changed

+39
-39
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ repos:
1414
# python code formatting/linting
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
1616
# Ruff version.
17-
rev: "v0.8.0"
17+
rev: "v0.11.12"
1818
hooks:
1919
- id: ruff
2020
args: [--fix]
2121
- repo: https://github.com/psf/black
22-
rev: 24.10.0
22+
rev: 25.1.0
2323
hooks:
2424
- id: black
2525
args: [--line-length, "100"]

nowcasting_datamodel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Init file """
1+
"""Init file"""
22

33
__version__ = "1.6.6"
44

nowcasting_datamodel/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Database Connection class"""
1+
"""Database Connection class"""
22

33
import logging
44

nowcasting_datamodel/fake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Functions used to make fake forecasts"""
1+
"""Functions used to make fake forecasts"""
22

33
from datetime import datetime, time, timedelta, timezone
44
from typing import List, Optional
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" Database Migrations """
1+
"""Database Migrations"""

nowcasting_datamodel/migrations/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" App for running database migrations """
1+
"""App for running database migrations"""
22

33
import logging
44
import os

nowcasting_datamodel/migrations/forecast/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" run migrations on Forecast Database """
1+
"""run migrations on Forecast Database"""
22

33
import os
44
from logging.config import fileConfig

nowcasting_datamodel/migrations/forecast/versions/c74d778923e9_metric_value_p_level.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Add p_level to metric_value
1+
"""Add p_level to metric_value
22
33
Revision ID: c74d778923e9
44
Revises: ed4a2f8c030a

nowcasting_datamodel/migrations/forecast/versions/ed4a2f8c030a_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Add created_utc index
1+
"""Add created_utc index
22
33
This migrations takes about 5 minutes to run
44

nowcasting_datamodel/migrations/pv/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" run migrations on PV Database """
1+
"""run migrations on PV Database"""
22

33
import os
44
from logging.config import fileConfig

nowcasting_datamodel/migrations/pv/versions/5268d6f39e84_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Add columns to pv systems
1+
"""Add columns to pv systems
22
33
They are
44
- ml capacity

nowcasting_datamodel/migrations/pv/versions/e1dd779648d2_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Add PV index (desc)
1+
"""Add PV index (desc)
22
33
Revision ID: e1dd779648d2
44
Revises: 580416fad3df

nowcasting_datamodel/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Pydantic and Sqlalchemy models for the database
1+
"""Pydantic and Sqlalchemy models for the database
22
33
The following class are made
44
1. Reusable classes (utils.py)

nowcasting_datamodel/models/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Pydantic and Sqlalchemy models for the database
1+
"""Pydantic and Sqlalchemy models for the database
22
33
The following class are made
44
1. User

nowcasting_datamodel/models/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Base files for SQL sqlalchemy """
1+
"""Base files for SQL sqlalchemy"""
22

33
from sqlalchemy.orm import declarative_base
44

nowcasting_datamodel/models/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Functions to convert objects """
1+
"""Functions to convert objects"""
22

33
import logging
44
from datetime import datetime, timezone

nowcasting_datamodel/models/forecast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Pydantic and Sqlalchemy models for the database
1+
"""Pydantic and Sqlalchemy models for the database
22
33
The following class are made
44
1. ForecastValue objects, specific values of a forecast and time

nowcasting_datamodel/models/gsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Pydantic and Sqlalchemy models for the database
1+
"""Pydantic and Sqlalchemy models for the database
22
33
2. Location objects, where the forecast is for
44
8. GSP yield for storing GSP yield data

nowcasting_datamodel/models/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Pydantic and Sqlalchemy models for the database
1+
"""Pydantic and Sqlalchemy models for the database
22
33
The following class are made
44
1. Reusable classes

nowcasting_datamodel/models/pv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Pydantic and Sqlalchemy models for the database
1+
"""Pydantic and Sqlalchemy models for the database
22
33
7. PV system for storing PV data (pv.py)
44
8. PV yield for storing PV data (pv.py)

nowcasting_datamodel/models/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" General Models"""
1+
"""General Models"""
22

33
from datetime import datetime
44

nowcasting_datamodel/national.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Make national forecasts """
1+
"""Make national forecasts"""
22

33
import logging
44
from typing import List

nowcasting_datamodel/read/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" init for read functions """
1+
"""init for read functions"""

nowcasting_datamodel/read/read.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Read database functions
1+
"""Read database functions
22
33
1. Get the latest forecast
44
2. get the latest forecasts for all gsp ids

nowcasting_datamodel/read/read_gsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Read pv functions """
1+
"""Read pv functions"""
22

33
import logging
44
from datetime import datetime, timezone

nowcasting_datamodel/read/read_metric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Read database functions
1+
"""Read database functions
22
33
1. Get the one metric
44
2. get datetime interval

nowcasting_datamodel/read/read_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Read functions for models"""
1+
"""Read functions for models"""
22

33
from datetime import datetime
44
from typing import Optional

nowcasting_datamodel/read/read_pv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Read pv functions """
1+
"""Read pv functions"""
22

33
import logging
44
from datetime import datetime, timezone

nowcasting_datamodel/read/read_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Read user"""
1+
"""Read user"""
22

33
import logging
44
from datetime import datetime

nowcasting_datamodel/save/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
""" init for save functions """
1+
"""init for save functions"""

nowcasting_datamodel/save/adjust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Methods for adding adjust values to the forecast"""
1+
"""Methods for adding adjust values to the forecast"""
22

33
import logging
44
from datetime import datetime, timedelta

nowcasting_datamodel/save/save.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Save forecasts to the database """
1+
"""Save forecasts to the database"""
22

33
import logging
44
import os

nowcasting_datamodel/save/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Method to update latest forecast values """
1+
"""Method to update latest forecast values"""
22

33
import logging
44
from datetime import datetime, timedelta, timezone

nowcasting_datamodel/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Utils functions for models """
1+
"""Utils functions for models"""
22

33
import logging
44
from datetime import datetime, timezone

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Usual setup file for package """
1+
"""Usual setup file for package"""
22

33
from pathlib import Path
44

tests/models/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Test Forecast Models"""
1+
"""Test Forecast Models"""
22

33
# Used constants
44
from datetime import datetime, timezone

tests/test_national.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Test national forecast"""
1+
"""Test national forecast"""
22

33
# Used constants
44
import pytest

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Utils functions for test """
1+
"""Utils functions for test"""
22

33
from datetime import datetime, timezone
44

0 commit comments

Comments
 (0)