From 10d8cbef1d92d5110ff5e5e743c2f91b6753de4f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 18:36:46 +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/psf/black: 23.9.1 → 23.10.0](https://github.com/psf/black/compare/23.9.1...23.10.0) - [github.com/pre-commit/mirrors-mypy: v1.6.0 → v1.6.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.0...v1.6.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 49d18a6..df7b290 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: "23.9.1" + rev: "23.10.0" hooks: - id: black - id: black-jupyter @@ -36,7 +36,7 @@ repos: - id: isort - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.6.0" + rev: "v1.6.1" hooks: - id: mypy additional_dependencies: From b5ad309232d87e932fcff170b1f8e19b038dd12f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 18:37:24 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/sweets/__main__.py | 1 + src/sweets/_log.py | 1 + src/sweets/_show_versions.py | 1 + 3 files changed, 3 insertions(+) diff --git a/src/sweets/__main__.py b/src/sweets/__main__.py index 3a7c34c..3c99193 100644 --- a/src/sweets/__main__.py +++ b/src/sweets/__main__.py @@ -1,4 +1,5 @@ """Main module to provide command line interface to the workflows.""" + import sys from .cli import main diff --git a/src/sweets/_log.py b/src/sweets/_log.py index 78ed46f..387c00d 100644 --- a/src/sweets/_log.py +++ b/src/sweets/_log.py @@ -15,6 +15,7 @@ # Custom output for this module: logger.success("Something great happened: highlight this success") """ + import logging import time from collections.abc import Callable diff --git a/src/sweets/_show_versions.py b/src/sweets/_show_versions.py index 6b92374..dc2c2e5 100644 --- a/src/sweets/_show_versions.py +++ b/src/sweets/_show_versions.py @@ -4,6 +4,7 @@ which was adapted from `sklearn.utils._show_versions` which was adapted from `pandas.show_versions` """ + from __future__ import annotations import importlib