Files
crewAI/tests/test_linting.py
2025-05-12 13:30:28 +00:00

13 lines
480 B
Python

"""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"