From 94ba147569f936c146a0bda6e01eff0ddb1acbf0 Mon Sep 17 00:00:00 2001 From: TPTBusiness Date: Thu, 2 Apr 2026 20:26:52 +0200 Subject: [PATCH] chore: Remove test configuration files from root - Removed .coveragerc (test coverage config) - Removed pytest.ini (pytest config) - These should be in test/ directory or not needed - Keeps root directory clean for release Co-authored-by: Qwen-Coder --- .coveragerc | 55 ----------------------------------------------------- pytest.ini | 31 ------------------------------ 2 files changed, 86 deletions(-) delete mode 100644 .coveragerc delete mode 100644 pytest.ini diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 2da46d47..00000000 --- a/.coveragerc +++ /dev/null @@ -1,55 +0,0 @@ -[run] -# Source code to measure -source = rdagent/components/backtesting - -# Omit patterns -omit = - */tests/* - */test_* - */__pycache__/* - */conftest.py - */site-packages/* - -# Branch coverage -branch = True - -# Parallel execution support -parallel = True - -[report] -# Precision for coverage percentages -precision = 2 - -# Exclude patterns -exclude_lines = - pragma: no cover - def __repr__ - raise AssertionError - raise NotImplementedError - if __name__ == .__main__.: - if TYPE_CHECKING: - @abstractmethod - -# Show missing lines -show_missing = True - -# Skip covered files in report -skip_covered = False - -# Fail under threshold -fail_under = 80 - -[html] -# HTML report directory -directory = htmlcov - -# Title for HTML report -title = PREDIX Backtesting Coverage Report - -[xml] -# XML output file -output = coverage.xml - -[json] -# JSON output file -output = coverage.json diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 86696317..00000000 --- a/pytest.ini +++ /dev/null @@ -1,31 +0,0 @@ -[pytest] -# Test discovery -testpaths = test -python_files = test_*.py -python_classes = Test* -python_functions = test_* - -# Coverage settings -addopts = - --cov=rdagent/components/backtesting - --cov-report=term-missing - --cov-report=html:htmlcov - --cov-report=xml:coverage.xml - --cov-fail-under=80 - -v - --tb=short - -# Filter warnings -filterwarnings = - ignore::DeprecationWarning - ignore::PendingDeprecationWarning - -# Logging -log_cli = false -log_cli_level = INFO - -# Markers -markers = - slow: marks tests as slow (deselect with '-m "not slow"') - integration: marks tests as integration tests - unit: marks tests as unit tests