codecov-cli 10.4.0__tar.gz → 11.0.0__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 (215) hide show
  1. codecov_cli-11.0.0/MANIFEST.in +5 -0
  2. codecov_cli-10.4.0/README.md → codecov_cli-11.0.0/PKG-INFO +17 -54
  3. codecov_cli-11.0.0/README.md +281 -0
  4. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/create_report_result.py +1 -1
  5. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/get_report_results.py +1 -3
  6. codecov_cli-11.0.0/codecov_cli/commands/labelanalysis.py +269 -0
  7. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/report.py +1 -1
  8. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/staticanalysis.py +1 -25
  9. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/upload.py +1 -0
  10. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/main.py +6 -4
  11. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/upload/file_finder.py +23 -11
  12. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli.egg-info/PKG-INFO +3 -263
  13. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli.egg-info/SOURCES.txt +0 -23
  14. codecov_cli-11.0.0/codecov_cli.egg-info/requires.txt +6 -0
  15. codecov_cli-11.0.0/codecov_cli.egg-info/top_level.txt +1 -0
  16. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/pyproject.toml +25 -28
  17. codecov_cli-11.0.0/setup.py +3 -0
  18. codecov_cli-11.0.0/tests/commands/test_invoke_labelanalysis.py +193 -0
  19. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/commands/test_invoke_upload_coverage.py +0 -2
  20. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/commands/test_invoke_upload_process.py +0 -2
  21. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_versioning_systems.py +1 -1
  22. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/services/upload/test_upload_collector.py +3 -1
  23. codecov_cli-10.4.0/MANIFEST.in +0 -7
  24. codecov_cli-10.4.0/PKG-INFO +0 -558
  25. codecov_cli-10.4.0/codecov_cli/commands/labelanalysis.py +0 -466
  26. codecov_cli-10.4.0/codecov_cli/services/staticanalysis/__init__.py +0 -296
  27. codecov_cli-10.4.0/codecov_cli/services/staticanalysis/analyzers/__init__.py +0 -14
  28. codecov_cli-10.4.0/codecov_cli/services/staticanalysis/analyzers/general.py +0 -124
  29. codecov_cli-10.4.0/codecov_cli/services/staticanalysis/analyzers/javascript_es6/__init__.py +0 -122
  30. codecov_cli-10.4.0/codecov_cli/services/staticanalysis/analyzers/javascript_es6/node_wrappers.py +0 -71
  31. codecov_cli-10.4.0/codecov_cli/services/staticanalysis/analyzers/python/__init__.py +0 -110
  32. codecov_cli-10.4.0/codecov_cli/services/staticanalysis/analyzers/python/node_wrappers.py +0 -117
  33. codecov_cli-10.4.0/codecov_cli/services/staticanalysis/exceptions.py +0 -2
  34. codecov_cli-10.4.0/codecov_cli/services/staticanalysis/finders.py +0 -47
  35. codecov_cli-10.4.0/codecov_cli/services/staticanalysis/types.py +0 -19
  36. codecov_cli-10.4.0/codecov_cli.egg-info/requires.txt +0 -10
  37. codecov_cli-10.4.0/codecov_cli.egg-info/top_level.txt +0 -2
  38. codecov_cli-10.4.0/languages/languages.c +0 -21
  39. codecov_cli-10.4.0/languages/treesitterjavascript/src/parser.c +0 -77456
  40. codecov_cli-10.4.0/languages/treesitterjavascript/src/scanner.c +0 -187
  41. codecov_cli-10.4.0/languages/treesitterjavascript/src/tree_sitter/parser.h +0 -224
  42. codecov_cli-10.4.0/languages/treesitterpython/src/parser.c +0 -99850
  43. codecov_cli-10.4.0/languages/treesitterpython/src/scanner.cc +0 -408
  44. codecov_cli-10.4.0/languages/treesitterpython/src/tree_sitter/parser.h +0 -224
  45. codecov_cli-10.4.0/requirements.txt +0 -65
  46. codecov_cli-10.4.0/setup.py +0 -27
  47. codecov_cli-10.4.0/tests/commands/test_invoke_labelanalysis.py +0 -783
  48. codecov_cli-10.4.0/tests/requirements.in +0 -8
  49. codecov_cli-10.4.0/tests/requirements.txt +0 -54
  50. codecov_cli-10.4.0/tests/services/static_analysis/languages/python/test_node_wrappers_malformed_code.py +0 -65
  51. codecov_cli-10.4.0/tests/services/static_analysis/test_analyse_file.py +0 -62
  52. codecov_cli-10.4.0/tests/services/static_analysis/test_static_analysis_service.py +0 -617
  53. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/LICENSE +0 -0
  54. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/__init__.py +0 -0
  55. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/__init__.py +0 -0
  56. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/base_picking.py +0 -0
  57. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/commit.py +0 -0
  58. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/empty_upload.py +0 -0
  59. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/process_test_results.py +0 -0
  60. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/send_notifications.py +0 -0
  61. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/upload_coverage.py +0 -0
  62. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/commands/upload_process.py +0 -0
  63. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/fallbacks.py +0 -0
  64. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/__init__.py +0 -0
  65. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/args.py +0 -0
  66. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/__init__.py +0 -0
  67. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/appveyor_ci.py +0 -0
  68. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/azure_pipelines.py +0 -0
  69. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/base.py +0 -0
  70. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/bitbucket_ci.py +0 -0
  71. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/bitrise_ci.py +0 -0
  72. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/buildkite.py +0 -0
  73. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/circleci.py +0 -0
  74. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/cirrus_ci.py +0 -0
  75. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/cloudbuild.py +0 -0
  76. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/codebuild.py +0 -0
  77. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/droneci.py +0 -0
  78. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/github_actions.py +0 -0
  79. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/gitlab_ci.py +0 -0
  80. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/heroku.py +0 -0
  81. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/jenkins.py +0 -0
  82. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/local.py +0 -0
  83. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/teamcity.py +0 -0
  84. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/travis_ci.py +0 -0
  85. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/ci_adapters/woodpeckerci.py +0 -0
  86. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/config.py +0 -0
  87. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/encoder.py +0 -0
  88. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/folder_searcher.py +0 -0
  89. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/git.py +0 -0
  90. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/git_services/__init__.py +0 -0
  91. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/git_services/github.py +0 -0
  92. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/glob.py +0 -0
  93. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/logging_utils.py +0 -0
  94. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/options.py +0 -0
  95. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/request.py +0 -0
  96. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/upload_type.py +0 -0
  97. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/validators.py +0 -0
  98. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/helpers/versioning_systems.py +0 -0
  99. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/opentelemetry.py +0 -0
  100. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/plugins/__init__.py +0 -0
  101. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/plugins/compress_pycoverage_contexts.py +0 -0
  102. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/plugins/gcov.py +0 -0
  103. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/plugins/pycoverage.py +0 -0
  104. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/plugins/types.py +0 -0
  105. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/plugins/xcode.py +0 -0
  106. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/runners/__init__.py +0 -0
  107. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/runners/dan_runner.py +0 -0
  108. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/runners/pytest_standard_runner.py +0 -0
  109. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/runners/types.py +0 -0
  110. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/__init__.py +0 -0
  111. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/commit/__init__.py +0 -0
  112. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/commit/base_picking.py +0 -0
  113. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/empty_upload/__init__.py +0 -0
  114. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/report/__init__.py +0 -0
  115. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/upload/__init__.py +0 -0
  116. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/upload/legacy_upload_sender.py +0 -0
  117. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/upload/network_finder.py +0 -0
  118. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/upload/upload_collector.py +0 -0
  119. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/upload/upload_sender.py +0 -0
  120. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/upload_completion/__init__.py +0 -0
  121. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/services/upload_coverage/__init__.py +0 -0
  122. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli/types.py +0 -0
  123. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli.egg-info/dependency_links.txt +0 -0
  124. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/codecov_cli.egg-info/entry_points.txt +0 -0
  125. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/example_cli_config.yml +0 -0
  126. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/example_module.js +0 -0
  127. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/.codecov.yaml +0 -0
  128. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/.codecov.yml +0 -0
  129. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/.github/.codecov.yaml +0 -0
  130. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/.github/.codecov.yml +0 -0
  131. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/.github/codecov.yaml +0 -0
  132. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/.github/codecov.yml +0 -0
  133. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/codecov.yaml +0 -0
  134. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/codecov.yml +0 -0
  135. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/dev/.codecov.yaml +0 -0
  136. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/dev/.codecov.yml +0 -0
  137. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/dev/codecov.yaml +0 -0
  138. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/fake_project/dev/codecov.yml +0 -0
  139. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/inputs/sample_001.py +0 -0
  140. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/inputs/sample_002.py +0 -0
  141. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/inputs/sample_003.js +0 -0
  142. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/inputs/sample_004.js +0 -0
  143. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/inputs/sample_005.py +0 -0
  144. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/junit.xml +0 -0
  145. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/outputs/sample_001.json +0 -0
  146. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/outputs/sample_002.json +0 -0
  147. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/outputs/sample_003.json +0 -0
  148. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/outputs/sample_004.json +0 -0
  149. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/samples/outputs/sample_005.json +0 -0
  150. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/setup.cfg +0 -0
  151. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/__init__.py +0 -0
  152. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_appveyor.py +0 -0
  153. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_azure_pipelines.py +0 -0
  154. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_bitbucket_ci.py +0 -0
  155. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_bitrise.py +0 -0
  156. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_buildkite.py +0 -0
  157. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_circleci.py +0 -0
  158. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_cirrusci.py +0 -0
  159. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_cloudbuild.py +0 -0
  160. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_codebuild.py +0 -0
  161. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_droneci.py +0 -0
  162. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_ghactions.py +0 -0
  163. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_gitlabci.py +0 -0
  164. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_herokuci.py +0 -0
  165. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_jenkins.py +0 -0
  166. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_local.py +0 -0
  167. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_teamcity.py +0 -0
  168. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_travis_ci.py +0 -0
  169. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/ci_adapters/test_woodpeckerci.py +0 -0
  170. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/commands/__init__.py +0 -0
  171. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/commands/test_invoke_empty_upload.py +0 -0
  172. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/commands/test_invoke_upload.py +0 -0
  173. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/commands/test_process_test_results.py +0 -0
  174. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/commands/test_upload_token_discovery.py +0 -0
  175. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/conftest.py +0 -0
  176. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/data/files_to_fix_examples/bad_encoding.go +0 -0
  177. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/data/files_to_fix_examples/sample.cpp +0 -0
  178. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/data/files_to_fix_examples/sample.go +0 -0
  179. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/data/files_to_fix_examples/sample.kt +0 -0
  180. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/data/files_to_fix_examples/sample.php +0 -0
  181. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/data/reports_examples.py +0 -0
  182. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/data//320/232/320/276/320/275/321/202/321/200/320/276/320/273/320/273/320/265/321/200/321/213//320/237/320/276/320/273/321/214/320/267/320/276/320/262/320/260/321/202/320/265/320/273/321/214//320/223/320/273/320/260/320/262/320/275/321/213/320/271/320/232/320/276/320/275/321/202/321/200/320/276/320/273/320/273/320/265/321/200.php" +0 -0
  183. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/factory.py +0 -0
  184. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/git_services/test_github.py +0 -0
  185. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_args.py +0 -0
  186. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_ci_adapter_selection.py +0 -0
  187. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_config.py +0 -0
  188. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_encoder.py +0 -0
  189. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_folder_searcher.py +0 -0
  190. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_git.py +0 -0
  191. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_legacy_upload_sender.py +0 -0
  192. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_network_finder.py +0 -0
  193. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_request.py +0 -0
  194. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_upload_sender.py +0 -0
  195. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/helpers/test_validators.py +0 -0
  196. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/plugins/test_compress_pycoverage_contexts.py +0 -0
  197. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/plugins/test_gcov.py +0 -0
  198. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/plugins/test_instantiation.py +0 -0
  199. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/plugins/test_pycoverage.py +0 -0
  200. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/plugins/test_xcode.py +0 -0
  201. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/runners/test_dan_runner.py +0 -0
  202. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/runners/test_pytest_standard_runner.py +0 -0
  203. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/runners/test_runners.py +0 -0
  204. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/runners/test_types.py +0 -0
  205. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/services/commit/test_base_picking.py +0 -0
  206. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/services/commit/test_commit_service.py +0 -0
  207. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/services/empty_upload/test_empty_upload.py +0 -0
  208. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/services/report/test_report_results.py +0 -0
  209. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/services/report/test_report_service.py +0 -0
  210. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/services/upload/test_coverage_file_finder.py +0 -0
  211. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/services/upload/test_upload_service.py +0 -0
  212. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/services/upload_completion/test_upload_completion.py +0 -0
  213. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/test_codecov_cli.py +0 -0
  214. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/test_helpers.py +0 -0
  215. {codecov_cli-10.4.0 → codecov_cli-11.0.0}/tests/test_types.py +0 -0
@@ -0,0 +1,5 @@
1
+ include requirements.txt
2
+
3
+ recursive-include codecov_cli *
4
+ recursive-include tests *
5
+ recursive-include samples *
@@ -1,3 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: codecov-cli
3
+ Version: 11.0.0
4
+ Summary: Codecov Command Line Interface
5
+ Author-email: Tom Hu <thomas.hu@sentry.io>
6
+ Maintainer-email: Codecov Support <support@codecov.io>
7
+ Requires-Python: >=3.9
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: click==8.*
11
+ Requires-Dist: ijson==3.*
12
+ Requires-Dist: PyYAML==6.*
13
+ Requires-Dist: responses==0.21.*
14
+ Requires-Dist: sentry-sdk==2.*
15
+ Requires-Dist: test-results-parser==0.5.4
16
+ Dynamic: license-file
17
+
1
18
  # CodecovCLI
2
19
 
3
20
  [![codecov](https://codecov.io/gh/codecov/codecov-cli/branch/master/graph/badge.svg?token=jN0CICuA6Z)](https://codecov.io/gh/codecov/codecov-cli)
@@ -17,12 +34,9 @@ CodecovCLI is a new way for users to interact with Codecov directly from the use
17
34
  - [create-commit](#create-commit)
18
35
  - [create-report](#create-report)
19
36
  - [do-upload](#do-upload)
20
- - [create-report-results](#create-report-results)
21
- - [get-report-results](#get-report-results)
22
37
  - [pr-base-picking](#pr-base-picking)
23
38
  - [send-notifications](#send-notifications)
24
39
  - [empty-upload](#empty-upload)
25
- - [How to Use Local Upload](#how-to-use-local-upload)
26
40
  - [Work in Progress Features](#work-in-progress-features)
27
41
  - [Plugin System](#plugin-system)
28
42
  - [Static Analysis](#static-analysis)
@@ -123,8 +137,6 @@ Codecov-cli supports user input. These inputs, along with their descriptions and
123
137
  | `create-commit` | Saves the commit's metadata in codecov, it's only necessary to run this once per commit
124
138
  | `create-report` | Creates an empty report in codecov with initial data e.g. report name, report's commit
125
139
  | `do-upload` | Searches for and uploads coverage data to codecov
126
- | `create-report-results` | Used for local upload. It tells codecov that you finished local uploading and want it to calculate the results for you to get them locally.
127
- | `get-report-results` | Used for local upload. It asks codecov to provide you the report results you calculated with the previous command.
128
140
  | `pr-base-picking` | Tells codecov that you want to explicitly define a base for your PR
129
141
  | `upload-process` | A wrapper for 3 commands. Create-commit, create-report and do-upload. You can use this command to upload to codecov instead of using the previously mentioned commands.
130
142
  | `send-notifications` | A command that tells Codecov that you finished uploading and you want to be sent notifications. To disable automatically sent notifications please consider adding manual_trigger to your codecov.yml, so it will look like codecov: notify: manual_trigger: true.
@@ -156,7 +168,6 @@ Codecov-cli supports user input. These inputs, along with their descriptions and
156
168
  |-r, --slug | owner/repo slug used instead of the private repo token in Self-hosted | Required
157
169
  |-t, --token | Codecov upload token | Required
158
170
  |--git-service | Git Provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Required
159
- |--code| The code of the report. This is used in local uploading to isolate local reports from regular or cloud reports uploaded to codecov so they don't get merged. It's basically a name you give to your report e.g. local-report. | Optional
160
171
  |-h, --help | Shows usage, and command options
161
172
 
162
173
  ## do-upload
@@ -165,7 +176,6 @@ Codecov-cli supports user input. These inputs, along with their descriptions and
165
176
  | Option | Description | Usage
166
177
  | :---: | :---: | :---: |
167
178
  |-C, --sha, --commit-sha| Commit SHA (with 40 chars) | Required
168
- |--report-code | The code of the report defined when creating the report. If unsure, leave default | Optional
169
179
  |--network-root-folder | Root folder from which to consider paths on the network section default: (Current working directory) | Optional
170
180
  |-s, --dir, --coverage-files-search-root-folder | Folder where to search for coverage files default: (Current Working Directory) | Optional
171
181
  |--exclude, --coverage-files-search-exclude-folder | Folders to exclude from search | Optional
@@ -189,30 +199,6 @@ Codecov-cli supports user input. These inputs, along with their descriptions and
189
199
  |--git-service | Git Provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Required
190
200
  |-h, --help | Shows usage, and command options
191
201
 
192
- ## create-report-results
193
- `codecovcli create-report-results [OPTIONS]`
194
-
195
- | Option | Description | Usage
196
- | :---: | :---: | :---: |
197
- |--commit-sha | Commit SHA (with 40 chars) | Required
198
- |--code | The code of the report. If unsure, leave default | Required
199
- |--slug | owner/repo slug | Required
200
- |--git-service | Git provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Optional
201
- |-t, --token | Codecov upload token | Required
202
- |-h, --help | Shows usage, and command options
203
-
204
- ## get-report-results
205
- `codecovcli get-report-results [OPTIONS]`
206
-
207
- | Option | Description | Usage
208
- | :---: | :---: | :---: |
209
- |--commit-sha | Commit SHA (with 40 chars) | Required
210
- |--code | The code of the report. If unsure, leave default | Required
211
- |--slug | owner/repo slug | Required
212
- |--git-service | Git provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Optional
213
- |-t, --token | Codecov upload token | Required
214
- |-h, --help | Shows usage, and command options
215
-
216
202
  ## pr-base-picking
217
203
  `codecovcli pr-base-picking [OPTIONS]`
218
204
 
@@ -254,25 +240,6 @@ are ignored by codecov (including README and configuration files)
254
240
  | --git-service | Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Optional |
255
241
  | -h, --help | Show this message and exit. | Optional |
256
242
 
257
- # How to Use Local Upload
258
-
259
- The CLI also supports "dry run" local uploading. This is useful if you prefer to see Codecov status checks and coverage reporting locally, in your terminal, as opposed to opening a PR and waiting for your full CI to run. Local uploads do not interfere with regular uploads made from your CI for any given commit / Pull Request.
260
-
261
- Local Upload is accomplished as follows:
262
-
263
- ```
264
- pip install codecov-cli
265
- codecovcli create-commit
266
- codecovcli create-report --code <CODE>
267
- codecovcli do-upload --report-code <CODE>
268
- codecovcli create-report-results --code <CODE>
269
- codecovcli get-report-results --code <CODE>
270
- ```
271
-
272
- Codecov will calculate the coverage results, and return them in your terminal, telling you whether your PR will fail or pass the coverage check.
273
-
274
- Note: In order for Local Upload to work, it must be used against a commit on the origin repository. Local Upload does not work for arbitrary diffs or uncommitted changes on your local machine.
275
-
276
243
  # Work in Progress Features
277
244
 
278
245
  The following features are somewhat implemented in code, but are not yet meant for use. These features will be documented once they are fully implemented in the CLI.
@@ -281,10 +248,6 @@ The following features are somewhat implemented in code, but are not yet meant f
281
248
 
282
249
  To provide extensibility to some of its commands, the CLI makes use of a plugin system. For most cases, the default commands are sufficient. But in some cases, having some custom logic specific to your use case can be beneficial. Note that full documentation of the plugin system is pending, as the feature is still heavily a work in progress.
283
250
 
284
- ## Static Analysis
285
-
286
- The CLI can perform basic static analysis on Python code today. This static analysis is meant to power more future looking Codecov features and, as such, is not required or in active use today. As more functionality dependent on static analysis becomes available for use, we will document static analysis in detail here.
287
-
288
251
  # Contributions
289
252
 
290
253
  This repository, like all of Codecov's repositories, strives to follow our general [Contributing guidelines](https://github.com/codecov/contributing). If you're considering making a contribution to this repository, we encourage review of our Contributing guidelines first.
@@ -0,0 +1,281 @@
1
+ # CodecovCLI
2
+
3
+ [![codecov](https://codecov.io/gh/codecov/codecov-cli/branch/master/graph/badge.svg?token=jN0CICuA6Z)](https://codecov.io/gh/codecov/codecov-cli)
4
+ [![Build-Test-Upload](https://github.com/codecov/codecov-cli/actions/workflows/push_flow.yml/badge.svg)](https://github.com/codecov/codecov-cli/actions/workflows/push_flow.yml)
5
+
6
+ CodecovCLI is a new way for users to interact with Codecov directly from the user’s terminal or CI platform. Many Codecov features that require the user’s interference can be done via the codecovCLI. It saves commits, creates reports, uploads coverage and has many more features.
7
+
8
+ - [CodecovCLI](#codecovcli)
9
+ - [Installing](#installing)
10
+ - [Using PIP](#using-pip)
11
+ - [As a Binary](#as-a-binary)
12
+ - [Integrity Checking the Binary](#integrity-checking-the-binary)
13
+ - [How to Upload to Codecov](#how-to-upload-to-codecov)
14
+ - [How to Get an Upload Token](#how-to-get-an-upload-token)
15
+ - [Usage](#usage)
16
+ - [Codecov-cli Commands](#codecov-cli-commands)
17
+ - [create-commit](#create-commit)
18
+ - [create-report](#create-report)
19
+ - [do-upload](#do-upload)
20
+ - [pr-base-picking](#pr-base-picking)
21
+ - [send-notifications](#send-notifications)
22
+ - [empty-upload](#empty-upload)
23
+ - [Work in Progress Features](#work-in-progress-features)
24
+ - [Plugin System](#plugin-system)
25
+ - [Static Analysis](#static-analysis)
26
+ - [Contributions](#contributions)
27
+ - [Requirements](#requirements)
28
+ - [Guidelines](#guidelines)
29
+ - [Dependencies](#dependencies)
30
+ - [Releases](#releases)
31
+
32
+ # Installing
33
+
34
+ ## Using PIP
35
+ To use codecov-cli in your local machine, or your CI workflows, you need to install it:
36
+
37
+ `pip install codecov-cli`
38
+
39
+ The above command will download the latest version of Codecov-cli. If you wish to use a specific version, releases can be viewed [here](https://pypi.org/project/codecov-cli/#history).
40
+
41
+ Note: If you're installing in a `pyenv` environment, you may need to call `pyenv rehash` before the CLI will work.
42
+
43
+ ## As a Binary
44
+ If you would like to use the CLI in an environment that does not have access to Python / PIP, you can install the CLI as a compiled binary. Linux and macOS releases can be found [here](https://cli.codecov.io/), along with SHASUMs and signatures for each released version. Binary releases are also available via [Github releases](https://github.com/codecov/codecov-cli/releases) on this repository.
45
+
46
+ You can retrieve the Binary for Linux directly from your command line as follows:
47
+
48
+ ```
49
+ curl -Os https://cli.codecov.io/latest/linux/codecov
50
+ sudo chmod +x codecov
51
+ ./codecov --help
52
+ ```
53
+
54
+ ### Integrity Checking the Binary
55
+
56
+ The binary can be integrity checked using a SHASUM256 and SHASUM256.sig file. The process for macos and Linux is identical. Linux is as follows:
57
+
58
+ ```
59
+ curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step
60
+ curl -Os https://cli.codecov.io/latest/linux/codecov
61
+ curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM
62
+ curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig
63
+
64
+ gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
65
+
66
+ shasum -a 256 -c codecov.SHA256SUM
67
+ ```
68
+
69
+ For macos you will want to use the macos distributions of the binary (e.g., https://cli.codecov.io/latest/macos/codecov)
70
+
71
+
72
+ # How to Upload to Codecov
73
+ If desired, the CLI can be used as a replacement for our [NodeJS Binary Uploader](https://github.com/codecov/uploader). To use the CLI to upload from your CI workflow, you need to add these commands:
74
+
75
+ ```
76
+ pip install codecov-cli
77
+ codecovcli create-commit
78
+ codecovcli create-report
79
+ codecovcli do-upload
80
+ ```
81
+ OR
82
+ ```
83
+ pip install codecov-cli
84
+ codecovcli upload-process
85
+ ```
86
+ codecovcli upload-process is a wrapper for create-commit, create-report and do-upload.
87
+
88
+ You can customize the commands with the options aligned with each command.
89
+
90
+ Note that these commands will automatically search your environment for a `$CODECOV_TOKEN` environment variable and use it if found. If you do not have a repository upload token, or global upload token, stored as an environment variable, you will need to pass it into **each command manually**, like so: `-t {$CODECOV_TOKEN}`.
91
+
92
+ ## How to Get an Upload Token
93
+ The following tokens are suitable for uploading:
94
+
95
+ * The [Repository Upload Token](https://docs.codecov.com/docs/codecov-uploader#upload-token): Found on the settings page of your repository, also viewable on the `/new` page when setting up a repository on Codecov for the first time.
96
+ * The [Global Upload Token](https://docs.codecov.com/docs/codecov-uploader#organization-upload-token): Found on your organization settings page (e.g., `https://app.codecov.io/account/<scm>/<org>/org-upload-token`).
97
+
98
+ # Usage
99
+ If the installation is successful, running `codecovcli --help` will output the available commands along with the different general options that can be used with them.
100
+
101
+ > [!IMPORTANT]
102
+ > For up-to-date command usage, please check the `codecovcli_commands` [file](https://github.com/codecov/codecov-cli/blob/main/codecovcli_commands)
103
+
104
+ ```
105
+ Usage: codecovcli [OPTIONS] COMMAND [ARGS]...
106
+ ```
107
+ Codecov-cli supports user input. These inputs, along with their descriptions and usage contexts, are listed in the table below:
108
+
109
+ | Input | Description | Usage |
110
+ | :---: | :---: | :---: |
111
+ | `--auto-load-params-from` | The CI/CD platform | Optional |
112
+ | `--codecov-yml-path` | The path for your codecov.yml | Optional
113
+ | `--enterprise-url` | Change the upload host (Enterprise use) | Optional
114
+ | `--version` | Codecov-cli's version | Optional
115
+ | `--verbose` or `-v` | Run the cli with verbose logging | Optional
116
+
117
+ # Codecov-cli Commands
118
+ | Command | Description |
119
+ | :---: | :---: |
120
+ | `create-commit` | Saves the commit's metadata in codecov, it's only necessary to run this once per commit
121
+ | `create-report` | Creates an empty report in codecov with initial data e.g. report name, report's commit
122
+ | `do-upload` | Searches for and uploads coverage data to codecov
123
+ | `pr-base-picking` | Tells codecov that you want to explicitly define a base for your PR
124
+ | `upload-process` | A wrapper for 3 commands. Create-commit, create-report and do-upload. You can use this command to upload to codecov instead of using the previously mentioned commands.
125
+ | `send-notifications` | A command that tells Codecov that you finished uploading and you want to be sent notifications. To disable automatically sent notifications please consider adding manual_trigger to your codecov.yml, so it will look like codecov: notify: manual_trigger: true.
126
+ >**Note**: Every command has its own different options that will be mentioned later in this doc. Codecov will try to load these options from your CI environment variables, if not, it will try to load them from git, if not found, you may need to add them manually.
127
+
128
+
129
+
130
+ ## create-commit
131
+ `codecovcli create-commit [Options]`
132
+
133
+ | Option | Description | Usage
134
+ | :---: | :---: | :---: |
135
+ | -C, --sha, --commit-sha | Commit SHA (with 40 chars) | Required
136
+ |--parent-sha | SHA (with 40 chars) of what should be the parent of this commit | Optional
137
+ |-P, --pr, --pull-request-number| Specify the pull request number manually. Used to override pre-existing CI environment variables | Optional
138
+ |-B, --branch | Branch to which this commit belongs to | Optional
139
+ |-r, --slug | owner/repo slug used instead of the private repo token in Self-hosted | Required
140
+ |-t, --token | Codecov upload token | Required
141
+ |--git-service | Git Provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Required
142
+ |-h, --help | Shows usage, and command options
143
+
144
+
145
+ ## create-report
146
+ `codecovcli create-report [OPTIONS]`
147
+
148
+ | Option | Description | Usage
149
+ | :---: | :---: | :---: |
150
+ | -C, --sha, --commit-sha | Commit SHA (with 40 chars) | Required
151
+ |-r, --slug | owner/repo slug used instead of the private repo token in Self-hosted | Required
152
+ |-t, --token | Codecov upload token | Required
153
+ |--git-service | Git Provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Required
154
+ |-h, --help | Shows usage, and command options
155
+
156
+ ## do-upload
157
+ `codecovcli do-upload [OPTIONS]`
158
+
159
+ | Option | Description | Usage
160
+ | :---: | :---: | :---: |
161
+ |-C, --sha, --commit-sha| Commit SHA (with 40 chars) | Required
162
+ |--network-root-folder | Root folder from which to consider paths on the network section default: (Current working directory) | Optional
163
+ |-s, --dir, --coverage-files-search-root-folder | Folder where to search for coverage files default: (Current Working Directory) | Optional
164
+ |--exclude, --coverage-files-search-exclude-folder | Folders to exclude from search | Optional
165
+ |-f, --file, --coverage-files-search-direct-file | Explicit files to upload | Optional
166
+ |--recurse-submodules | Whether to enumerate files inside of submodules for path-fixing purposes. Off by default. | Optional
167
+ |--disable-search | Disable search for coverage files. This is helpful when specifying what files you want to upload with the --file option.| Optional
168
+ |-b, --build, --build-code | Specify the build number manually | Optional
169
+ |--build-url | The URL of the build where this is running | Optional
170
+ |--job-code | The job code for the CI run | Optional
171
+ |-t, --token | Codecov upload token | Required
172
+ |-n, --name | Custom defined name of the upload. Visible in Codecov UI | Optional
173
+ |-B, --branch | Branch to which this commit belongs to | Optional
174
+ |-r, --slug | owner/repo slug | Required
175
+ |-P, --pr, --pull-request-number | Specify the pull request number manually. Used to override pre-existing CI environment variables | Optional
176
+ |-e, --env, --env-var | Specify environment variables to be included with this build. | Optional
177
+ |-F, --flag | Flag the upload to group coverage metrics. Multiple flags allowed. | Optional
178
+ |--plugin | plugins to run. Options: xcode, gcov, pycoverage. The default behavior runs them all. | Optional
179
+ |-Z, --fail-on-error | Exit with non-zero code in case of error uploading.|Optional
180
+ |-d, --dry-run | Don't upload files to Codecov | Optional
181
+ |--legacy, --use-legacy-uploader | Use the legacy upload endpoint | Optional
182
+ |--git-service | Git Provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Required
183
+ |-h, --help | Shows usage, and command options
184
+
185
+ ## pr-base-picking
186
+ `codecovcli pr-base-picking [OPTIONS]`
187
+
188
+ | Option | Description | Usage
189
+ | :---: | :---: | :---: |
190
+ |--base-sha | Base commit SHA (with 40 chars) | Required
191
+ |--pr | Pull Request id to associate commit with | Required
192
+ |--slug | owner/repo slug | Required
193
+ |-t, --token| Codecov upload token | Required
194
+ |--service | Git provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Optional
195
+ |-h, --help | Shows usage, and command options
196
+
197
+ ## send-notifications
198
+ `codecovcli send-notifications [OPTIONS]`
199
+
200
+ | Option | Description | Usage
201
+ | :---: | :---: | :---: |
202
+ | -C, --sha, --commit-sha TEXT |Commit SHA (with 40 chars) | Required
203
+ | -r, --slug TEXT |owner/repo slug used instead of the private repo token in Self-hosted | Required
204
+ | -t, --token TEXT |Codecov upload token | Required
205
+ | --git-service | Git provider. Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Optional
206
+ | -h,--help |Show this message and exit.
207
+
208
+ ## empty-upload
209
+
210
+ Used if the changes made don't need testing, but PRs require a passing codecov status to be merged.
211
+ This command will scan the files in the commit and send passing status checks configured if all the changed files
212
+ are ignored by codecov (including README and configuration files)
213
+
214
+ `Usage: codecovcli empty-upload [OPTIONS]`
215
+
216
+ | Options | Description | usage |
217
+ | :--------------------------: | :----------------------------------------------------------------------------------------: | :------: |
218
+ | -C, --sha, --commit-sha TEXT | Commit SHA (with 40 chars) | Required |
219
+ | -t, --token TEXT | Codecov upload token | Required |
220
+ | -r, --slug TEXT | owner/repo slug used instead of the private repo token in Self-hosted | Optional |
221
+ | --force | Always emit passing checks regardless of changed files | Optional |
222
+ | -Z, --fail-on-error | Exit with non-zero code in case of error | Optional |
223
+ | --git-service | Options: github, gitlab, bitbucket, github_enterprise, gitlab_enterprise, bitbucket_server | Optional |
224
+ | -h, --help | Show this message and exit. | Optional |
225
+
226
+ # Work in Progress Features
227
+
228
+ The following features are somewhat implemented in code, but are not yet meant for use. These features will be documented once they are fully implemented in the CLI.
229
+
230
+ ## Plugin System
231
+
232
+ To provide extensibility to some of its commands, the CLI makes use of a plugin system. For most cases, the default commands are sufficient. But in some cases, having some custom logic specific to your use case can be beneficial. Note that full documentation of the plugin system is pending, as the feature is still heavily a work in progress.
233
+
234
+ # Contributions
235
+
236
+ This repository, like all of Codecov's repositories, strives to follow our general [Contributing guidelines](https://github.com/codecov/contributing). If you're considering making a contribution to this repository, we encourage review of our Contributing guidelines first.
237
+
238
+ ## Requirements
239
+
240
+ Most of this package is a very conventional Python package. The main difference is the static the CLI's analysis module uses both git submodules and C code
241
+
242
+ Before installing, one should pull the submodules with:
243
+
244
+ ```
245
+ git submodule update --init
246
+ ```
247
+ Then, install dependencies with
248
+ ```
249
+ pip install -r requirements.txt
250
+ python -m pip install --editable .
251
+ ```
252
+
253
+ The C code shouldn't require any additional setup to get running, but depending on your environment, you may be prompted to install compilers and supporting tools. If errors are generated during installation, it is likely due to missing dependencies / tools required of the C code. In many cases, resulting error messages should be clear enough to determine what is missing and how to install it, but common errors will be collected here as they are encountered.
254
+
255
+ ## Guidelines
256
+
257
+ There are a few guidelines when developing in this system. Some notable folders:
258
+
259
+ 1. `commands` - It's the folder that interacts with the caller. This is where the commands themselves should reside. These commands are not meant to do heavy lifting. They only do wiring, which is mostly parsing the input parameters.
260
+ 2. `services` - It's where the heavy logic resides. It's mostly organized by which command needs them. Commands should generally be thin wrappers around these services.
261
+ 3. `helpers` - This is meant for logic that is useful across different commands. For example, logging helpers, or the logic that searches folders.
262
+
263
+ ## Dependencies
264
+
265
+ If external dependencies need to be added, it's important to check whether those dependencies have wheels available on PyPI with the `any` or `universal2` platform tags. If those dependencies don't have those wheels available, then they will need to built during the CI, so they will have to be added to the list of
266
+ dependencies in the `--no-binary` flag when building the requirements for the macos release in `build_assets.yml`.
267
+
268
+ # Releases
269
+
270
+ The standard way to making a new release is the following:
271
+ 1) Open a PR that increases the version number in pyproject.toml. As a rule of thumb, just add one to the micro/patch version (e.g., v0.1.6 -> v0.1.7).
272
+
273
+ 2) Get the up-to-date master branch locally and run the `tag.release` command from the Makefile.
274
+
275
+ `$ make tag.release version=v<VERSION_NUM>`
276
+
277
+ The version tag must match the regex defined on the Makefile (`tag_regex := ^v([0-9]{1,}\.){2}[0-9]{1,}([-_]\w+)?$`).
278
+
279
+ >**Note**: \
280
+ >Releases with `test` word in them are created as `draft`. \
281
+ >Releases with `beta` word in them are created as `pre-release`.
@@ -11,7 +11,7 @@ from codecov_cli.types import CommandContext
11
11
  logger = logging.getLogger("codecovcli")
12
12
 
13
13
 
14
- @click.command()
14
+ @click.command(hidden=True, deprecated=True)
15
15
  @click.option(
16
16
  "--code", help="The code of the report. If unsure, leave default", default="default"
17
17
  )
@@ -3,10 +3,8 @@ import logging
3
3
  import click
4
4
  import sentry_sdk
5
5
 
6
- from codecov_cli.fallbacks import CodecovOption, FallbackFieldEnum
7
6
  from codecov_cli.helpers.args import get_cli_args
8
7
  from codecov_cli.helpers.encoder import encode_slug
9
- from codecov_cli.helpers.git import GitService
10
8
  from codecov_cli.helpers.options import global_options
11
9
  from codecov_cli.services.report import send_reports_result_get_request
12
10
  from codecov_cli.types import CommandContext
@@ -15,7 +13,7 @@ from codecov_cli.types import CommandContext
15
13
  logger = logging.getLogger("codecovcli")
16
14
 
17
15
 
18
- @click.command()
16
+ @click.command(hidden=True, deprecated=True)
19
17
  @click.option(
20
18
  "--code", help="The code of the report. If unsure, leave default", default="default"
21
19
  )