diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 936de2a..79b121a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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.6" 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] diff --git a/pvconsumer/__init__.py b/pvconsumer/__init__.py index ff53d84..511520d 100644 --- a/pvconsumer/__init__.py +++ b/pvconsumer/__init__.py @@ -1,2 +1,3 @@ """ Pv Consumer""" + __version__ = "2.1.1" diff --git a/pvconsumer/pv_systems.py b/pvconsumer/pv_systems.py index c98a4d3..ad8079a 100644 --- a/pvconsumer/pv_systems.py +++ b/pvconsumer/pv_systems.py @@ -1,4 +1,5 @@ """ PV system functions """ + import logging import os from datetime import datetime, timedelta diff --git a/pvconsumer/save.py b/pvconsumer/save.py index 4ea6e06..3065c46 100644 --- a/pvconsumer/save.py +++ b/pvconsumer/save.py @@ -1,4 +1,5 @@ """ Save to database functions""" + import logging import pandas as pd diff --git a/pvconsumer/solar_sheffield_passiv.py b/pvconsumer/solar_sheffield_passiv.py index c3df4fb..8f86686 100644 --- a/pvconsumer/solar_sheffield_passiv.py +++ b/pvconsumer/solar_sheffield_passiv.py @@ -1,6 +1,5 @@ """ Function to get data from Solar Shieffield about Pasiv systems""" - import logging import os from typing import List diff --git a/pvconsumer/utils.py b/pvconsumer/utils.py index 3bc6e3c..37e03f7 100644 --- a/pvconsumer/utils.py +++ b/pvconsumer/utils.py @@ -1,4 +1,5 @@ """ Utils functions """ + import logging from datetime import datetime, timedelta, timezone