From 044e250881b3113158c4aaaf68eb4b1e735a2ab0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 21:14:45 +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 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 23.9.1 → 25.11.0](https://github.com/psf/black-pre-commit-mirror/compare/23.9.1...25.11.0) - [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.3...v4.0.0-alpha.8) - [github.com/pycqa/flake8: 6.1.0 → 7.3.0](https://github.com/pycqa/flake8/compare/6.1.0...7.3.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f0f562e..30c6816 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: # - id: mypy # additional_dependencies: [types-all] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: check-added-large-files exclude: \.(geojson)$ @@ -31,13 +31,13 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace args: ["--markdown-linebreak-ext=md"] - - repo: https://github.com/psf/black - rev: 23.9.1 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.11.0 hooks: - id: black language_version: python3 - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 # Use the sha or tag you want to point at + rev: v4.0.0-alpha.8 # Use the sha or tag you want to point at hooks: - id: prettier args: ["--ignore-path=./superset-frontend/.prettierignore"] @@ -49,6 +49,6 @@ repos: - id: blacklist args: ["--blacklisted-names=make_url", "--ignore=tests/"] - repo: https://github.com/pycqa/flake8 - rev: '6.1.0' + rev: '7.3.0' hooks: - id: flake8 From a05a94f3996e727887db00098d84de35b19d4294 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 21:14:56 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/python_examples.py | 1 + examples/readme_examples.py | 1 + examples/readme_hello_world.py | 1 + promptimize/suite.py | 1 + 4 files changed, 4 insertions(+) diff --git a/examples/python_examples.py b/examples/python_examples.py index 229c949..5988d6e 100644 --- a/examples/python_examples.py +++ b/examples/python_examples.py @@ -1,4 +1,5 @@ """An example of how to test Python code generating prompts""" + import re # Brining some "prompt generator" classes diff --git a/examples/readme_examples.py b/examples/readme_examples.py index c34c5d3..410bfda 100644 --- a/examples/readme_examples.py +++ b/examples/readme_examples.py @@ -3,6 +3,7 @@ to run, simply execute `p9e ./examples/readme_examples.py` """ + # Brining some "prompt generator" classes from promptimize.prompt_cases import PromptCase, TemplatedPromptCase diff --git a/examples/readme_hello_world.py b/examples/readme_hello_world.py index 4910ea3..b281fa9 100644 --- a/examples/readme_hello_world.py +++ b/examples/readme_hello_world.py @@ -3,6 +3,7 @@ to run, simply execute `p9e ./examples/readme_examples.py` """ + # Brining some "prompt generator" classes from promptimize.prompt_cases import PromptCase diff --git a/promptimize/suite.py b/promptimize/suite.py index 88e20ce..a43dca5 100644 --- a/promptimize/suite.py +++ b/promptimize/suite.py @@ -3,6 +3,7 @@ use cases (prompts) to be tested. It allows running the tests, displaying results, and serializing the summary of the suite. """ + import random from typing import Any, Dict, List, Optional, Union