From 7804f1262bd17de87a6e1a08e230fbaa133036ec Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 17:48:51 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.286 → v0.8.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.286...v0.8.4) - [github.com/psf/black: 23.7.0 → 24.10.0](https://github.com/psf/black/compare/23.7.0...24.10.0) - [github.com/pre-commit/mirrors-prettier: v3.0.2 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.2...v4.0.0-alpha.8) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e191b29..de487e2 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 @@ -14,18 +14,18 @@ repos: # python code formatting/linting - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.0.286" + rev: "v0.8.4" hooks: - id: ruff args: [--fix] - repo: https://github.com/psf/black - rev: 23.7.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.2 + rev: v4.0.0-alpha.8 hooks: - id: prettier types: [yaml] From ae8901bf18530c27ba23a21c0b39a7fac65c1c48 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Dec 2024 17:49:03 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pvnet_summation/__init__.py | 1 + pvnet_summation/models/base_model.py | 1 + pvnet_summation/training.py | 1 + scripts/checkpoint_to_huggingface.py | 1 + 4 files changed, 4 insertions(+) diff --git a/pvnet_summation/__init__.py b/pvnet_summation/__init__.py index 2c8e3d0..4898da8 100644 --- a/pvnet_summation/__init__.py +++ b/pvnet_summation/__init__.py @@ -1,2 +1,3 @@ """PVNet_summation""" + __version__ = "0.3.2" diff --git a/pvnet_summation/models/base_model.py b/pvnet_summation/models/base_model.py index 4ec5782..c386187 100644 --- a/pvnet_summation/models/base_model.py +++ b/pvnet_summation/models/base_model.py @@ -1,4 +1,5 @@ """Base model for all PVNet submodels""" + import logging from typing import Optional diff --git a/pvnet_summation/training.py b/pvnet_summation/training.py index 5c723fa..5663c6b 100644 --- a/pvnet_summation/training.py +++ b/pvnet_summation/training.py @@ -1,4 +1,5 @@ """Training""" + import os from typing import Optional diff --git a/scripts/checkpoint_to_huggingface.py b/scripts/checkpoint_to_huggingface.py index 71a5e3e..084308c 100644 --- a/scripts/checkpoint_to_huggingface.py +++ b/scripts/checkpoint_to_huggingface.py @@ -5,6 +5,7 @@ --local-path="~/tmp/this_model" \ --no-push-to-hub """ + import glob import os import tempfile