From d7ac90c9e2a89a849f02dc0e8f8bccffb4906882 Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Sat, 18 Oct 2025 14:07:16 -0400 Subject: [PATCH] chore: remove lib/crewai exclusion from pre-commit hooks --- .pre-commit-config.yaml | 10 +++++++--- pyproject.toml | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eae818e66..d9089adc5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,18 +4,22 @@ repos: - id: ruff name: ruff entry: uv run ruff check + args: ["--config", "pyproject.toml", "."] language: system + pass_filenames: false types: [python] - exclude: ^lib/crewai/ - id: ruff-format name: ruff-format entry: uv run ruff format + args: ["--config", "pyproject.toml", "."] language: system + pass_filenames: false types: [python] - exclude: ^lib/crewai/ - id: mypy name: mypy entry: uv run mypy + args: ["--config-file", "pyproject.toml", "."] language: system + pass_filenames: false types: [python] - exclude: ^lib/crewai/ + diff --git a/pyproject.toml b/pyproject.toml index 57c01c700..f6e7890c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,8 @@ dev = [ [tool.ruff] -exclude = [ +src = ["lib/*"] +extend-exclude = [ "lib/crewai/src/crewai/cli/templates", "lib/crewai/tests/", "lib/crewai-tools/tests/",