Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

fix(precommit): remove hardcoded python version (#9346)

Isaac Miller88ea7fd38ade
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2b5fa0955..7dcbe254a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,20 +1,16 @@
-default_language_version:
- python: python3.10
-
default_stages: [pre-commit]
default_install_hook_types: [pre-commit]
repos:
- - repo: local
+ - repo: https://github.com/astral-sh/ruff-pre-commit
+ rev: v0.15.0
hooks:
- - id: ruff-check
+ - id: ruff
name: ruff (lint)
- entry: ruff
- language: system
types_or: [python, pyi]
files: ^(dspy|tests)/.*\.py$
exclude: ^(dspy/__metadata__\.py|tests/reliability/.*\.py)$
- args: [check, --fix-only]
+ args: [--fix-only]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0