Fix linting issues by updating ruff configuration and adding linting test

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-05-12 13:30:28 +00:00
parent 4e496d7a20
commit 807dfe0558
2 changed files with 43 additions and 0 deletions

12
tests/test_linting.py Normal file
View File

@@ -0,0 +1,12 @@
"""Test to verify that the linting configuration is working correctly."""
import os
from pathlib import Path
def test_ruff_config_exists():
"""Test that the ruff configuration file exists."""
repo_root = Path(__file__).parent.parent
ruff_config_path = repo_root / ".ruff.toml"
assert ruff_config_path.exists(), "Ruff configuration file (.ruff.toml) should exist"
assert ruff_config_path.stat().st_size > 0, "Ruff configuration file should not be empty"