Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)$
Expand All @@ -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"]
Expand All @@ -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
1 change: 1 addition & 0 deletions examples/python_examples.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""An example of how to test Python code generating prompts"""

import re

# Brining some "prompt generator" classes
Expand Down
1 change: 1 addition & 0 deletions examples/readme_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions examples/readme_hello_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

to run, simply execute `p9e ./examples/readme_examples.py`
"""

# Brining some "prompt generator" classes
from promptimize.prompt_cases import PromptCase

Expand Down
1 change: 1 addition & 0 deletions promptimize/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down