From 288f198ca97cbb4e089971c86fc2df8ed10cf3a2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 16:31:49 +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/astral-sh/ruff-pre-commit: v0.15.6 → v0.16.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.6...v0.16.2) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61fbd30..e457f92 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.15.6 + rev: v0.16.2 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 28df06096d1af59fdb8c4a5e0767285e287e9ebe Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 16:32:06 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.py | 2 +- src/biocsetup/create_repository.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 1171e77..1c360af 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ if __name__ == "__main__": try: setup(use_scm_version={"version_scheme": "no-guess-dev"}) - except: # noqa + except: print( "\n\nAn error occurred while building the project, " "please ensure you have the most updated version of setuptools, " diff --git a/src/biocsetup/create_repository.py b/src/biocsetup/create_repository.py index 620c315..8d92d2f 100644 --- a/src/biocsetup/create_repository.py +++ b/src/biocsetup/create_repository.py @@ -1,6 +1,5 @@ import shutil from pathlib import Path -from typing import Optional from pyscaffold import api, file_system, shell from pyscaffoldext.markdown.extension import Markdown @@ -12,7 +11,7 @@ def create_repository( project_path: str, - description: Optional[str] = "Add a short description here!", + description: str | None = "Add a short description here!", license: str = "MIT", rst: bool = False, ) -> None: