.coveragerc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # Coverage.py configuration file
  2. # https://coverage.readthedocs.io/en/latest/config.html
  3. [run]
  4. # Source code directories to measure
  5. source = src
  6. # Files to omit from coverage measurement
  7. omit =
  8. */tests/*
  9. */test_*.py
  10. */__pycache__/*
  11. */site-packages/*
  12. */conftest.py
  13. */venv/*
  14. */virtualenv/*
  15. */.venv/*
  16. */migrations/*
  17. */alembic/*
  18. # Enable branch coverage
  19. branch = True
  20. # Measure coverage in parallel mode (useful for multiprocessing)
  21. parallel = False
  22. # Data file location
  23. data_file = .coverage
  24. [report]
  25. # Fail if coverage is below this threshold
  26. fail_under = 80
  27. # Precision for coverage percentages
  28. precision = 2
  29. # Show lines that weren't executed
  30. show_missing = True
  31. # Skip files with 100% coverage in the report
  32. skip_covered = False
  33. # Skip empty files
  34. skip_empty = True
  35. # Sort the report by different criteria
  36. # Options: Name, Stmts, Miss, Branch, BrPart, Cover
  37. sort = Cover
  38. # Lines to exclude from coverage measurement
  39. exclude_lines =
  40. # Have to re-enable the standard pragma
  41. pragma: no cover
  42. # Don't complain about missing debug-only code
  43. def __repr__
  44. def __str__
  45. # Don't complain if tests don't hit defensive assertion code
  46. raise AssertionError
  47. raise NotImplementedError
  48. # Don't complain if non-runnable code isn't run
  49. if __name__ == .__main__.:
  50. if __name__==.__main__.:
  51. # Don't complain about abstract methods
  52. @abstractmethod
  53. @abc.abstractmethod
  54. # Don't complain about type checking code
  55. if TYPE_CHECKING:
  56. if typing.TYPE_CHECKING:
  57. # Don't complain about protocol methods
  58. \.\.\.
  59. pass
  60. # Don't complain about overload definitions
  61. @overload
  62. @typing.overload
  63. # Don't complain about deprecated code
  64. @deprecated
  65. warnings.warn
  66. [html]
  67. # Directory for HTML coverage report
  68. directory = htmlcov
  69. # Title for the HTML report
  70. title = RAG System Coverage Report
  71. # Show contexts in HTML report
  72. show_contexts = True
  73. [xml]
  74. # Output file for XML coverage report (for CI/CD)
  75. output = coverage.xml
  76. [json]
  77. # Output file for JSON coverage report
  78. output = coverage.json
  79. # Pretty print the JSON output
  80. pretty_print = True
  81. # Show contexts in JSON report
  82. show_contexts = True
  83. [paths]
  84. # Map different paths to the same source (useful for CI/CD)
  85. source =
  86. src/
  87. */site-packages/