A programming framework for agentic AI
replace unofficial with official pre-commit hook for ruff (#2229)
Davor Runje54b5bbb6ee44
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 025cc7cbb..53b6207a3 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -26,11 +26,12 @@ repos:rev: 24.3.0hooks:- id: black- - repo: https://github.com/charliermarsh/ruff-pre-commit- rev: v0.3.3+ - repo: https://github.com/astral-sh/ruff-pre-commit+ rev: v0.3.4hooks:- id: ruff- args: ["--fix"]+ types_or: [ python, pyi, jupyter ]+ args: ["--fix", "--ignore=E402"]- repo: https://github.com/codespell-project/codespellrev: v2.2.6hooks:@@ -61,9 +62,6 @@ repos:# Print the number of files as a sanity-checkverbose: true- repo: https://github.com/nbQA-dev/nbQA- rev: 1.8.4+ rev: 1.8.5hooks:- - id: nbqa-ruff- # Don't require notebooks to have all imports at the top- args: ["--fix", "--ignore=E402"]- id: nbqa-black