mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-23 07:08:14 +00:00
Fix linting issues by updating ruff configuration and adding linting test
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
12
tests/test_linting.py
Normal file
12
tests/test_linting.py
Normal 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"
|
||||
Reference in New Issue
Block a user