cikit 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. {cikit-0.1.0/src/cikit.egg-info → cikit-0.1.1}/PKG-INFO +1 -1
  2. {cikit-0.1.0 → cikit-0.1.1}/ci_commands/coverage.py +2 -1
  3. {cikit-0.1.0 → cikit-0.1.1}/ci_commands/pylint.py +2 -1
  4. {cikit-0.1.0 → cikit-0.1.1}/ci_commands/ruff.py +2 -1
  5. {cikit-0.1.0 → cikit-0.1.1}/docs/concepts/cikit_data.rst +0 -1
  6. {cikit-0.1.0 → cikit-0.1.1}/pyproject.toml +1 -1
  7. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/factory.py +2 -2
  8. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/coverage.py +0 -1
  9. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/reports.py +5 -5
  10. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/timeline/timeline_chart.py +28 -0
  11. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/xml_tools.py +2 -4
  12. {cikit-0.1.0 → cikit-0.1.1/src/cikit.egg-info}/PKG-INFO +1 -1
  13. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/test_ci_cli.py +42 -0
  14. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_factory.py +22 -18
  15. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/test_coverage.py +1 -2
  16. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/test_reports.py +0 -2
  17. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_timeline/test_timeline_chart.py +36 -8
  18. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_xml_tools.py +2 -4
  19. {cikit-0.1.0 → cikit-0.1.1}/.gitignore +0 -0
  20. {cikit-0.1.0 → cikit-0.1.1}/.gitlab-ci.yml +0 -0
  21. {cikit-0.1.0 → cikit-0.1.1}/.project +0 -0
  22. {cikit-0.1.0 → cikit-0.1.1}/.pydevproject +0 -0
  23. {cikit-0.1.0 → cikit-0.1.1}/.pylintrc +0 -0
  24. {cikit-0.1.0 → cikit-0.1.1}/.repomixignore +0 -0
  25. {cikit-0.1.0 → cikit-0.1.1}/LICENSE +0 -0
  26. {cikit-0.1.0 → cikit-0.1.1}/README.md +0 -0
  27. {cikit-0.1.0 → cikit-0.1.1}/ci_commands/__init__.py +0 -0
  28. {cikit-0.1.0 → cikit-0.1.1}/ci_commands/all_.py +0 -0
  29. {cikit-0.1.0 → cikit-0.1.1}/ci_commands/init.py +0 -0
  30. {cikit-0.1.0 → cikit-0.1.1}/ci_commands/sphinx.py +0 -0
  31. {cikit-0.1.0 → cikit-0.1.1}/ci_commands/test.py +0 -0
  32. {cikit-0.1.0 → cikit-0.1.1}/docs/Makefile +0 -0
  33. {cikit-0.1.0 → cikit-0.1.1}/docs/_static/logo/cikit-logo-192.png +0 -0
  34. {cikit-0.1.0 → cikit-0.1.1}/docs/_static/logo/cikit-logo.png +0 -0
  35. {cikit-0.1.0 → cikit-0.1.1}/docs/_static/logo/favicon.ico +0 -0
  36. {cikit-0.1.0 → cikit-0.1.1}/docs/build_reports/index.rst +0 -0
  37. {cikit-0.1.0 → cikit-0.1.1}/docs/build_reports/lint.rst +0 -0
  38. {cikit-0.1.0 → cikit-0.1.1}/docs/build_reports/tests.rst +0 -0
  39. {cikit-0.1.0 → cikit-0.1.1}/docs/concepts/artifacts.rst +0 -0
  40. {cikit-0.1.0 → cikit-0.1.1}/docs/concepts/environment.rst +0 -0
  41. {cikit-0.1.0 → cikit-0.1.1}/docs/concepts/index.rst +0 -0
  42. {cikit-0.1.0 → cikit-0.1.1}/docs/concepts/metadata.rst +0 -0
  43. {cikit-0.1.0 → cikit-0.1.1}/docs/concepts/providers.rst +0 -0
  44. {cikit-0.1.0 → cikit-0.1.1}/docs/conf.py +0 -0
  45. {cikit-0.1.0 → cikit-0.1.1}/docs/getting_started.rst +0 -0
  46. {cikit-0.1.0 → cikit-0.1.1}/docs/guides/azure_devops.rst +0 -0
  47. {cikit-0.1.0 → cikit-0.1.1}/docs/guides/builds.rst +0 -0
  48. {cikit-0.1.0 → cikit-0.1.1}/docs/guides/ci_commands.rst +0 -0
  49. {cikit-0.1.0 → cikit-0.1.1}/docs/guides/gitlab_ci.rst +0 -0
  50. {cikit-0.1.0 → cikit-0.1.1}/docs/guides/index.rst +0 -0
  51. {cikit-0.1.0 → cikit-0.1.1}/docs/guides/local_pipeline.rst +0 -0
  52. {cikit-0.1.0 → cikit-0.1.1}/docs/guides/macros.rst +0 -0
  53. {cikit-0.1.0 → cikit-0.1.1}/docs/guides/sphinx_build.rst +0 -0
  54. {cikit-0.1.0 → cikit-0.1.1}/docs/guides/sphinx_extensions.rst +0 -0
  55. {cikit-0.1.0 → cikit-0.1.1}/docs/guides/timelines.rst +0 -0
  56. {cikit-0.1.0 → cikit-0.1.1}/docs/index.rst +0 -0
  57. {cikit-0.1.0 → cikit-0.1.1}/docs/roadmap.rst +0 -0
  58. {cikit-0.1.0 → cikit-0.1.1}/setup.cfg +0 -0
  59. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/__init__.py +0 -0
  60. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/artifacts.py +0 -0
  61. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/badge.py +0 -0
  62. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/ci/README.md +0 -0
  63. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/ci/__init__.py +0 -0
  64. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/ci/loader.py +0 -0
  65. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/ci/main.py +0 -0
  66. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/ci/runner.py +0 -0
  67. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/command.py +0 -0
  68. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/data/README.md +0 -0
  69. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/data/__init__.py +0 -0
  70. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/data/api.py +0 -0
  71. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/data/cli.py +0 -0
  72. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/data/client.py +0 -0
  73. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/data/common.py +0 -0
  74. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/env/README.md +0 -0
  75. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/env/__init__.py +0 -0
  76. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/env/api.py +0 -0
  77. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/env/cli.py +0 -0
  78. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/env/common.py +0 -0
  79. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/env/env_vars.py +0 -0
  80. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/env/provider.py +0 -0
  81. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/errors.py +0 -0
  82. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/json_utils.py +0 -0
  83. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/lint_to_rst.py +0 -0
  84. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/logging_utils.py +0 -0
  85. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/README.md +0 -0
  86. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/__init__.py +0 -0
  87. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/bundle.py +0 -0
  88. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/cmake.py +0 -0
  89. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/common.py +0 -0
  90. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/platformio.py +0 -0
  91. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/pylint.py +0 -0
  92. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/pytest.py +0 -0
  93. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/ruff.py +0 -0
  94. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/macros/sphinx.py +0 -0
  95. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/project_meta.py +0 -0
  96. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/php/cikit_data/.htaccess +0 -0
  97. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/php/cikit_data/README.md +0 -0
  98. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/php/cikit_data/cikit_data_common.php +0 -0
  99. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/php/cikit_data/cikit_data_create.php +0 -0
  100. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/php/cikit_data/cikit_data_latest.php +0 -0
  101. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/php/cikit_data/cikit_data_timeline.php +0 -0
  102. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/php/cikit_data/cikit_data_update.php +0 -0
  103. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/php/cikit_data/config.php +0 -0
  104. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/php/cikit_data/config.php.example +0 -0
  105. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/php/cikit_data/generate_secrets.py +0 -0
  106. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/sql/cikit_data/README.md +0 -0
  107. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/sql/cikit_data/db_init.sql +0 -0
  108. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/resources/sql/cikit_data/db_reset.sql +0 -0
  109. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/rst_tools.py +0 -0
  110. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/sphinx_ext/__init__.py +0 -0
  111. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/sphinx_ext/chart.py +0 -0
  112. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/sphinx_ext/hash.py +0 -0
  113. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/sphinx_ext/log.py +0 -0
  114. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/sphinx_ext/metrics.py +0 -0
  115. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/status.py +0 -0
  116. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/systemtest/__init__.py +0 -0
  117. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/systemtest/fixtures.py +0 -0
  118. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/timeline/README.md +0 -0
  119. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/timeline/__init__.py +0 -0
  120. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/timeline/__main__.py +0 -0
  121. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/timeline/charts.py +0 -0
  122. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/timeline/presets.py +0 -0
  123. {cikit-0.1.0 → cikit-0.1.1}/src/cikit/timeline/preview.py +0 -0
  124. {cikit-0.1.0 → cikit-0.1.1}/src/cikit.egg-info/SOURCES.txt +0 -0
  125. {cikit-0.1.0 → cikit-0.1.1}/src/cikit.egg-info/dependency_links.txt +0 -0
  126. {cikit-0.1.0 → cikit-0.1.1}/src/cikit.egg-info/entry_points.txt +0 -0
  127. {cikit-0.1.0 → cikit-0.1.1}/src/cikit.egg-info/requires.txt +0 -0
  128. {cikit-0.1.0 → cikit-0.1.1}/src/cikit.egg-info/top_level.txt +0 -0
  129. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/conftest.py +0 -0
  130. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/cmake_error/CMakeLists.txt +0 -0
  131. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/cmake_error/main.c +0 -0
  132. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/cmake_native/CMakeLists.txt +0 -0
  133. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/cmake_native/linker.ld +0 -0
  134. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/cmake_native/main.c +0 -0
  135. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/cmake_warning/CMakeLists.txt +0 -0
  136. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/cmake_warning/main.c +0 -0
  137. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/platformio_error/platformio.ini +0 -0
  138. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/platformio_error/src/main.c +0 -0
  139. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/platformio_native/platformio.ini +0 -0
  140. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/platformio_native/src/main.cpp +0 -0
  141. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/sphinx/docs/conf.py +0 -0
  142. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/sphinx/docs/index.rst +0 -0
  143. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/sphinx_invalid/docs/ index.rst +0 -0
  144. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/projects/sphinx_invalid/docs/conf.py +0 -0
  145. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/test_cmake.py +0 -0
  146. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/test_data_cli.py +0 -0
  147. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/test_env_cli.py +0 -0
  148. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/test_platformio.py +0 -0
  149. {cikit-0.1.0 → cikit-0.1.1}/tests/systemtests/test_sphinx.py +0 -0
  150. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_ci_commands/__init__.py +0 -0
  151. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_ci_commands/test_all.py +0 -0
  152. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_ci_commands/test_sphinx.py +0 -0
  153. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/__init__.py +0 -0
  154. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_artifacts.py +0 -0
  155. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_badge.py +0 -0
  156. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_command.py +0 -0
  157. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_data/__init__.py +0 -0
  158. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_data/test_api.py +0 -0
  159. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_data/test_cli.py +0 -0
  160. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_data/test_client.py +0 -0
  161. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_data/test_common.py +0 -0
  162. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_env/__init__.py +0 -0
  163. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_env/test_api.py +0 -0
  164. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_env/test_common.py +0 -0
  165. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_env/test_env_vars.py +0 -0
  166. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_env/test_provider.py +0 -0
  167. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_errors.py +0 -0
  168. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_json_utils.py +0 -0
  169. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_lint_to_rst.py +0 -0
  170. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_logging_utils.py +0 -0
  171. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/__init__.py +0 -0
  172. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/test_bundle.py +0 -0
  173. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/test_cmake.py +0 -0
  174. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/test_common.py +0 -0
  175. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/test_platformio.py +0 -0
  176. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/test_pylint.py +0 -0
  177. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/test_pytest.py +0 -0
  178. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/test_ruff.py +0 -0
  179. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_macros/test_sphinx.py +0 -0
  180. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_project_meta.py +0 -0
  181. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_rst_tools.py +0 -0
  182. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_sphinx_ext/__init__.py +0 -0
  183. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_sphinx_ext/test_chart.py +0 -0
  184. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_sphinx_ext/test_hash.py +0 -0
  185. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_sphinx_ext/test_init.py +0 -0
  186. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_sphinx_ext/test_log.py +0 -0
  187. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_sphinx_ext/test_metrics.py +0 -0
  188. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_status.py +0 -0
  189. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_timeline/__init__.py +0 -0
  190. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_timeline/test_charts.py +0 -0
  191. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_timeline/test_presets.py +0 -0
  192. {cikit-0.1.0 → cikit-0.1.1}/tests/unittests/test_cikit/test_timeline/test_preview.py +0 -0
  193. {cikit-0.1.0 → cikit-0.1.1}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cikit
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: CI helper toolkit
5
5
  Author-email: Sven Schlender <svesch@gmx.de>
6
6
  License-Expression: GPL-3.0-or-later
@@ -35,7 +35,8 @@ def run(env, status, args: argparse.Namespace):
35
35
  raise CiRecoverableError("Coverage is below level!")
36
36
 
37
37
  with CiOptionalSection("Create timeline chart", status=status):
38
- timeline = chart_timeline(env, keys=["coverage"], title="Coverage %", limit=20)
38
+ timeline = chart_timeline(env, keys=["coverage"], title="Coverage %")
39
+ timeline.set_min_y_range(0, 100)
39
40
  timeline.create(env, "coverage")
40
41
 
41
42
  with CiSection("Generating coverage rst", status=status):
@@ -36,7 +36,8 @@ def run(env, status, args: argparse.Namespace):
36
36
 
37
37
  with CiOptionalSection("Create timeline chart", status=status):
38
38
  timeline = chart_timeline(env, keys=["error", "warning", "refactoring", "convention"],
39
- title="Pylint messages", limit=20)
39
+ title="Pylint messages")
40
+ timeline.set_min_y_range(0, 50)
40
41
  timeline.create(env, "pylint")
41
42
 
42
43
  with CiSection("Generating pylint badge", status=status):
@@ -35,7 +35,8 @@ def run(env, status, args: argparse.Namespace):
35
35
  ruff.gitlab_code_quality(env, args.paths)
36
36
 
37
37
  with CiOptionalSection("Create timeline chart", status=status):
38
- timeline = chart_timeline(env, keys=["violations"], title="Ruff violations", limit=20)
38
+ timeline = chart_timeline(env, keys=["violations"], title="Ruff violations")
39
+ timeline.set_min_y_range(0, 10)
39
40
  timeline.create(env, "ruff")
40
41
 
41
42
  with CiSection("Generating ruff badge", status=status):
@@ -237,7 +237,6 @@ For example:
237
237
 
238
238
  coverage:
239
239
  coverage
240
- line_rate
241
240
 
242
241
  pylint:
243
242
  score
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cikit"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  description = "CI helper toolkit"
5
5
  authors = [{name = "Sven Schlender", email = "svesch@gmx.de"}]
6
6
  readme = { file = "README.md", content-type = "text/markdown" }
@@ -42,11 +42,11 @@ def _resolve_cikit_data_project(env) -> str:
42
42
  if addressing != "provider":
43
43
  raise CiToolsError(f"Unsupported CIKIT_DATA_ADDRESSING value: {addressing!r}")
44
44
 
45
- provider_project = env.provider_project
45
+ provider_project = env.provider.provider_project
46
46
  if not provider_project:
47
47
  return env["PROJECT_NAME"]
48
48
 
49
- provider_scope = env.provider_scope
49
+ provider_scope = env.provider.provider_scope
50
50
  if not provider_scope:
51
51
  return provider_project
52
52
 
@@ -157,7 +157,6 @@ def write_rst(env, report_title: str = None) -> Artifact:
157
157
  summary = RstBlock("Summary")
158
158
  summary.extend([
159
159
  f"- Coverage: {env.data.get('coverage')}",
160
- f"- Line rate: {env.data.get('line_rate')}",
161
160
  f"- Lines covered: {env.data.get('lines_covered')}",
162
161
  f"- Lines valid: {env.data.get('lines_valid')}",
163
162
  "",
@@ -157,9 +157,10 @@ def write_build_report(env, name: str = None, report_title: str = None) -> Artif
157
157
  def process_test_result(env, test_alias: str, report_file: Path, returncode: int):
158
158
  """Process and persist a JUnit-compatible test result.
159
159
 
160
- The JUnit report is parsed, registered as an XUnit artifact and stored in
161
- the current run data. Failed test execution is reported only after all
162
- available result data has been persisted.
160
+ The JUnit report is parsed and registered as an XUnit artifact. Extracted
161
+ test metrics and the process exit code are stored in the current run data.
162
+ Failed test execution is reported only after all available result data has
163
+ been persisted.
163
164
 
164
165
  Args:
165
166
  env: Resolved CI run environment.
@@ -173,8 +174,7 @@ def process_test_result(env, test_alias: str, report_file: Path, returncode: int
173
174
  result = read_junit_totals(test_alias, report_file)
174
175
  result["exit_code"] = returncode
175
176
 
176
- artifact = env.copy_artifact(report_file, ArtifactType.XUNIT)
177
- result["xml_file"] = artifact.target_name
177
+ env.copy_artifact(report_file, ArtifactType.XUNIT)
178
178
 
179
179
  env.data_update(result)
180
180
 
@@ -219,3 +219,31 @@ class TimelineChart:
219
219
  output_file = Path(temp_dir) / filename
220
220
  self.render(output_file)
221
221
  return env.copy_artifact(output_file, ArtifactType.TIMELINE)
222
+
223
+ def set_min_y_range(self, minimum: float, maximum: float):
224
+ """Set a minimum visible range for the Y axis.
225
+
226
+ The configured range is expanded when timeline values exceed either
227
+ boundary.
228
+
229
+ Args:
230
+ minimum: Minimum lower Y-axis boundary.
231
+ maximum: Minimum upper Y-axis boundary.
232
+
233
+ Raises:
234
+ CiToolsError: If minimum is not smaller than maximum.
235
+ """
236
+ if minimum >= maximum:
237
+ raise CiToolsError("Minimum Y range must have minimum < maximum.")
238
+
239
+ values = []
240
+ for series in self._series_map.values():
241
+ for value in series:
242
+ if isinstance(value, (int, float)):
243
+ values.append(value)
244
+
245
+ if values:
246
+ minimum = min(minimum, *values)
247
+ maximum = max(maximum, *values)
248
+
249
+ self._chart_options["range"] = (minimum, maximum)
@@ -85,8 +85,7 @@ def read_cobertura_coverage(xml_file: Path) -> dict:
85
85
 
86
86
  Returns:
87
87
  Dict containing:
88
- line_rate: Raw line coverage ratio (0.0 .. 1.0).
89
- coverage: Rounded coverage percentage (0 .. 100).
88
+ coverage: Coverage percentage rounded to one decimal place (0.0 .. 100.0).
90
89
  lines_covered: Number of executed lines.
91
90
  lines_valid: Total number of executable lines.
92
91
 
@@ -121,8 +120,7 @@ def read_cobertura_coverage(xml_file: Path) -> dict:
121
120
  raise CiToolsError(f"Invalid line counters in XML file: {xml_file}") from exp
122
121
 
123
122
  return {
124
- "line_rate": line_rate,
125
- "coverage": round(line_rate * 100),
123
+ "coverage": round(line_rate * 100, 1),
126
124
  "lines_covered": lines_covered,
127
125
  "lines_valid": lines_valid,
128
126
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cikit
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: CI helper toolkit
5
5
  Author-email: Sven Schlender <svesch@gmx.de>
6
6
  License-Expression: GPL-3.0-or-later
@@ -7,10 +7,17 @@ Date:
7
7
  2026-06-16
8
8
  """
9
9
 
10
+ import pytest
11
+
10
12
  from cikit.command import run_command
11
13
  from cikit.macros.pytest import build_coverage_command
12
14
 
13
15
 
16
+ _PROVIDER_ENV_KEYS = ("GITLAB_CI", "TF_BUILD", "CI_PROJECT_NAMESPACE", "CI_PROJECT_NAME",
17
+ "CI_PIPELINE_ID", "SYSTEM_TEAMPROJECT", "BUILD_REPOSITORY_NAME",
18
+ "BUILD_BUILDID", "BUILD_BUILDNUMBER", "CIKIT_PIPELINE_ID")
19
+
20
+
14
21
  def _run_ci(env, args: list, *, check_exit_code: bool = True):
15
22
  """Run the cikit CI CLI through coverage.
16
23
 
@@ -33,6 +40,41 @@ def _run_ci(env, args: list, *, check_exit_code: bool = True):
33
40
  check_exit_code=check_exit_code)
34
41
 
35
42
 
43
+ @pytest.mark.parametrize(("provider_env", "provider_name"),
44
+ [
45
+ pytest.param({"GITLAB_CI": "true", "CI_PROJECT_NAMESPACE": "embedded",
46
+ "CI_PROJECT_NAME": "cikit", "CI_PIPELINE_ID": "123"}, "GITLAB", id="gitlab"),
47
+ pytest.param({"TF_BUILD": "true", "SYSTEM_TEAMPROJECT": "Embedded",
48
+ "BUILD_REPOSITORY_NAME": "cikit", "BUILD_BUILDID": "123"}, "AZURE_DEVOPS",
49
+ id="azure-devops"),
50
+ pytest.param({"CIKIT_PIPELINE_ID": "local-123"}, "LOCALGIT", id="local"),
51
+ ],
52
+ )
53
+ def test_init_with_provider_data_addressing(
54
+ env, monkeypatch, tmp_path, provider_env, provider_name):
55
+ """Verify provider based cikit data addressing with all supported providers."""
56
+ for key in _PROVIDER_ENV_KEYS:
57
+ monkeypatch.delenv(key, raising=False)
58
+
59
+ monkeypatch.delenv("CIKIT_DATA_BASE_URL", raising=False)
60
+ monkeypatch.delenv("CIKIT_DATA_API_TOKEN", raising=False)
61
+
62
+ public_dir = tmp_path / "public"
63
+ monkeypatch.setenv("PUBLIC_DIR", str(public_dir))
64
+ monkeypatch.setenv("CIKIT_DATA_DIR", str(public_dir / "cikit_data"))
65
+ monkeypatch.setenv("CIKIT_DATA_ADDRESSING", "provider")
66
+
67
+ for key, value in provider_env.items():
68
+ monkeypatch.setenv(key, value)
69
+
70
+ result = _run_ci(env, ["init"])
71
+
72
+ output = f"{result.stdout}\n{result.stderr}"
73
+
74
+ assert result.returncode == 0
75
+ assert f"Provider: {provider_name}" in output
76
+
77
+
36
78
  def test_help_displays_usage(env):
37
79
  """Verify that the CI CLI help can be displayed.
38
80
 
@@ -16,23 +16,27 @@ from cikit.errors import CiToolsError
16
16
  from cikit.factory import build_run_context_from_env, build_cikit_data_from_env
17
17
 
18
18
 
19
+ class DummyProvider:
20
+ """Provider stub for factory tests."""
21
+
22
+ def __init__(self):
23
+ """Initialize empty provider project metadata."""
24
+ self.provider_scope = ""
25
+ self.provider_project = ""
26
+
27
+
19
28
  class DummyEnv(dict):
20
- """Dictionary based environment stub with provider metadata properties."""
29
+ """Dictionary based environment stub with provider metadata."""
21
30
 
22
31
  pipeline_id = "pid-123"
23
- provider_scope = ""
24
- provider_project = ""
25
32
 
26
- def get(self, key: str, default=""):
27
- """Return optional environment value.
28
-
29
- Args:
30
- key: Environment key.
31
- default: Value returned if the key is missing.
33
+ def __init__(self, *args, **kwargs):
34
+ """Initialize the environment stub."""
35
+ super().__init__(*args, **kwargs)
36
+ self.provider = DummyProvider()
32
37
 
33
- Returns:
34
- Environment value or default.
35
- """
38
+ def get(self, key: str, default=""):
39
+ """Return optional environment value."""
36
40
  return super().get(key, default)
37
41
 
38
42
 
@@ -126,8 +130,8 @@ class TestBuildCikitdataFromEnv:
126
130
  "CIKIT_DATA_DIR": Path("/tmp/cikit_data"),
127
131
  }
128
132
  )
129
- env.provider_scope = "group"
130
- env.provider_project = "provider-proj"
133
+ env.provider.provider_scope = "group"
134
+ env.provider.provider_project = "provider-proj"
131
135
 
132
136
  _, cikit_data = build_cikit_data_from_env(env)
133
137
 
@@ -142,8 +146,8 @@ class TestBuildCikitdataFromEnv:
142
146
  "CIKIT_DATA_DIR": Path("/tmp/cikit_data"),
143
147
  }
144
148
  )
145
- env.provider_scope = "group"
146
- env.provider_project = "provider-proj"
149
+ env.provider.provider_scope = "group"
150
+ env.provider.provider_project = "provider-proj"
147
151
 
148
152
  _, cikit_data = build_cikit_data_from_env(env)
149
153
 
@@ -158,7 +162,7 @@ class TestBuildCikitdataFromEnv:
158
162
  "CIKIT_DATA_DIR": Path("/tmp/cikit_data"),
159
163
  }
160
164
  )
161
- env.provider_project = "provider-proj"
165
+ env.provider.provider_project = "provider-proj"
162
166
 
163
167
  _, cikit_data = build_cikit_data_from_env(env)
164
168
 
@@ -173,7 +177,7 @@ class TestBuildCikitdataFromEnv:
173
177
  "CIKIT_DATA_DIR": Path("/tmp/cikit_data"),
174
178
  }
175
179
  )
176
- env.provider_scope = "group"
180
+ env.provider.provider_scope = "group"
177
181
 
178
182
  _, cikit_data = build_cikit_data_from_env(env)
179
183
 
@@ -230,7 +230,7 @@ def test_badge_writes_coverage_badge(mocker, tmp_path):
230
230
  def test_write_rst_writes_file_and_registers_artifact(tmp_path):
231
231
  """Check generated coverage RST file."""
232
232
  env = FakeEnv(tmp_path)
233
- env.data.update({"coverage": 91.2, "line_rate": 0.912, "lines_covered": 912,
233
+ env.data.update({"coverage": 91.2, "lines_covered": 912,
234
234
  "lines_valid": 1000})
235
235
 
236
236
  html_source = tmp_path / "html" / "coverage"
@@ -252,7 +252,6 @@ def test_write_rst_writes_file_and_registers_artifact(tmp_path):
252
252
 
253
253
  assert "Python Coverage Report" in content
254
254
  assert "- Coverage: 91.2" in content
255
- assert "- Line rate: 0.912" in content
256
255
  assert "- Lines covered: 912" in content
257
256
  assert "- Lines valid: 1000" in content
258
257
  assert "../_static/artifacts/coverage/index.html" in content
@@ -269,7 +269,6 @@ def test_process_test_result_stores_result_and_artifact(mocker, tmp_path):
269
269
  "tests": 4,
270
270
  "failures": 0,
271
271
  "exit_code": 0,
272
- "xml_file": "unit-report.xml",
273
272
  })
274
273
 
275
274
 
@@ -295,7 +294,6 @@ def test_process_test_result_stores_failed_result_before_raising(mocker, tmp_pat
295
294
  "tests": 4,
296
295
  "failures": 1,
297
296
  "exit_code": 7,
298
- "xml_file": "unit-report.xml",
299
297
  })
300
298
 
301
299
 
@@ -20,7 +20,7 @@ from cikit.errors import CiToolsError
20
20
  from cikit.timeline import TimelineChart, TimelinePreset
21
21
 
22
22
 
23
- class DummyEnv:
23
+ class DummyEnv: # pylint: disable=too-few-public-methods
24
24
  """Small test double for timeline artifact handling."""
25
25
 
26
26
  def __init__(self, artifacts_dir: Path):
@@ -187,6 +187,37 @@ def test_set_style_stores_chart_style():
187
187
  assert chart.to_dict()["chart_options"]["style"] is style
188
188
 
189
189
 
190
+ def test_set_min_y_range_uses_requested_range():
191
+ """Test set_min_y_range keeps the requested range when all values fit."""
192
+ timeline = {"refs": [1, 2, 3], "series": {"errors": [5, 10, 20]}}
193
+ chart = TimelineChart(timeline)
194
+
195
+ chart.set_min_y_range(0, 50)
196
+
197
+ assert chart.to_dict()["chart_options"]["range"] == (0, 50)
198
+
199
+
200
+ def test_set_min_y_range_expands_to_data_bounds():
201
+ """Test set_min_y_range expands the range for values outside the boundaries."""
202
+ timeline = {"refs": [1, 2, 3], "series": {"errors": [-5, 10, 80]}}
203
+ chart = TimelineChart(timeline)
204
+
205
+ chart.set_min_y_range(0, 50)
206
+
207
+ assert chart.to_dict()["chart_options"]["range"] == (-5, 80)
208
+
209
+
210
+ def test_set_min_y_range_rejects_invalid_range():
211
+ """Test set_min_y_range rejects equal or reversed boundaries."""
212
+ chart = TimelineChart(_timeline_data())
213
+
214
+ with pytest.raises(CiToolsError, match="minimum < maximum"):
215
+ chart.set_min_y_range(50, 50)
216
+
217
+ with pytest.raises(CiToolsError, match="minimum < maximum"):
218
+ chart.set_min_y_range(50, 0)
219
+
220
+
190
221
  def test_set_series_options_merges_options():
191
222
  """Test set_series_options merges repeated options."""
192
223
  chart = TimelineChart(_timeline_data())
@@ -194,9 +225,8 @@ def test_set_series_options_merges_options():
194
225
  chart.set_series_options("coverage", secondary=True)
195
226
  chart.set_series_options("coverage", show_dots=False)
196
227
 
197
- assert chart.to_dict()["series_options"] == {
198
- "coverage": {"secondary": True, "show_dots": False}
199
- }
228
+ assert chart.to_dict()["series_options"] == {"coverage": {"secondary": True,
229
+ "show_dots": False}}
200
230
 
201
231
 
202
232
  def test_set_series_options_rejects_unknown_series():
@@ -250,10 +280,8 @@ def test_create_renders_chart_and_registers_artifact(tmp_path):
250
280
  assert dummy.options["style"] == "style"
251
281
  assert dummy.title == "Quality"
252
282
  assert dummy.x_labels == ["1", "2", "3"]
253
- assert dummy.series == [
254
- ("coverage", [80, 85, 90], {"secondary": True}),
255
- ("warnings", [5, 3, 1], {}),
256
- ]
283
+ assert dummy.series == [("coverage", [80, 85, 90], {"secondary": True}),
284
+ ("warnings", [5, 3, 1], {})]
257
285
 
258
286
 
259
287
  def test_create_wraps_render_errors(tmp_path):
@@ -96,8 +96,7 @@ def test_read_cobertura_coverage_reads_root_metrics(tmp_path):
96
96
  result = read_cobertura_coverage(xml_file)
97
97
 
98
98
  assert result == {
99
- "line_rate": 0.876,
100
- "coverage": 88,
99
+ "coverage": 87.6,
101
100
  "lines_covered": 876,
102
101
  "lines_valid": 1000,
103
102
  }
@@ -115,8 +114,7 @@ def test_read_cobertura_coverage_accepts_comma_decimal_separator(tmp_path):
115
114
 
116
115
  result = read_cobertura_coverage(xml_file)
117
116
 
118
- assert result["line_rate"] == 0.5
119
- assert result["coverage"] == 50
117
+ assert result["coverage"] == 50.0
120
118
 
121
119
 
122
120
  def test_read_cobertura_coverage_defaults_missing_line_counters_to_zero(tmp_path):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes