mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-15 20:08:29 +00:00
fix: suppress Pydantic deprecation warnings in initialization (#3443)
* fix: suppress Pydantic deprecation warnings in initialization - Implemented a function to filter out Pydantic deprecation warnings, enhancing the user experience by preventing unnecessary warning messages during execution. - Removed the previous warning filter setup to streamline the warning suppression process. - Updated the User-Agent header formatting for consistency. * fix type check * dropped * fix: update type-checker workflow and suppress warnings - Updated the Python version matrix in the type-checker workflow to use double quotes for consistency. - Added the `# type: ignore[assignment]` comment to the warning suppression assignment in `__init__.py` to address type checking issues. - Ensured that the mypy command in the workflow allows for untyped calls and generics, enhancing type checking flexibility. * better
This commit is contained in:
8
.github/workflows/type-checker.yml
vendored
8
.github/workflows/type-checker.yml
vendored
@@ -12,13 +12,13 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ['3.10', '3.11', '3.12', '3.13']
|
||||
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # Fetch all history for proper diff
|
||||
fetch-depth: 0 # Fetch all history for proper diff
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v6
|
||||
@@ -40,10 +40,10 @@ jobs:
|
||||
# Get the list of changed Python files compared to the base branch
|
||||
echo "Fetching changed files..."
|
||||
git diff --name-only --diff-filter=ACMRT origin/${{ github.base_ref }}...HEAD -- '*.py' > changed_files.txt
|
||||
|
||||
|
||||
# Filter for files in src/ and tests/ directories
|
||||
grep -E "^(src/|tests/)" changed_files.txt > filtered_changed_files.txt || true
|
||||
|
||||
|
||||
# Check if there are any changed files
|
||||
if [ -s filtered_changed_files.txt ]; then
|
||||
echo "Changed Python files in src/ and tests/:"
|
||||
|
||||
Reference in New Issue
Block a user