Skip to content

[pre-commit.ci] pre-commit autoupdate #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
8 changes: 4 additions & 4 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: v5.0.0
hooks:
- id: check-added-large-files
exclude: \.(geojson)$
Expand All @@ -32,12 +32,12 @@ repos:
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 25.1.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.2.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