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