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 #73

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
8 changes: 4 additions & 4 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 @@ -14,18 +14,18 @@ repos:
# python code formatting/linting
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.0.290"
rev: "v0.7.2"
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 24.10.0
hooks:
- id: black
args: [--line-length, "100"]
# yaml formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types: [yaml]
1 change: 1 addition & 0 deletions gspconsumer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
""" Pv Consumer"""

__version__ = "1.1.19"
1 change: 1 addition & 0 deletions gspconsumer/gsps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" GSP functions """

import logging
from datetime import datetime, timedelta, timezone
from typing import List, Optional
Expand Down
1 change: 1 addition & 0 deletions gspconsumer/time.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" 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
1 change: 1 addition & 0 deletions scripts/gsp_name_update/merge_labels.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Merge labels """

# import the files

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions 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 """

# 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
1 change: 1 addition & 0 deletions 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"""

from urllib.request import urlopen

import geopandas as gpd
Expand Down
1 change: 1 addition & 0 deletions scripts/v3_to_v4/update_installed_capacity.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
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 gspconsumer package."""

from pathlib import Path

from setuptools import find_packages, setup
Expand Down
Loading