Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --strict option to CLI #132

Merged
merged 2 commits into from
Apr 26, 2024
Merged

Add --strict option to CLI #132

merged 2 commits into from
Apr 26, 2024

Conversation

CasperWA
Copy link
Collaborator

@CasperWA CasperWA commented Apr 25, 2024

Closes #129

Adds the --strict flag option to the CLI commands upload and validate.

This is centered around the validate command. If --strict is supplied, if an entity already exists externally and differs in content, validation will fail for that entity.
Therefore, --strict is also mutually exclusive with --no-external-calls. If both are supplied an error will be raised.


Note, this PR also updates the codecov-action to v4.

Copy link

codecov bot commented Apr 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.26%. Comparing base (77bf7a9) to head (e013aee).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
+ Coverage   92.18%   92.26%   +0.08%     
==========================================
  Files          26       26              
  Lines        1343     1357      +14     
==========================================
+ Hits         1238     1252      +14     
  Misses        105      105              
Flag Coverage Δ
docker 80.39% <100.00%> (+0.20%) ⬆️
local 91.15% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Added to validate and upload commands.

Add tests for the new --strict option.

Allow wrapping for summary columns (except name+version).
@CasperWA CasperWA force-pushed the cwa/close-129-strict-option branch from 36b3a5e to e013aee Compare April 25, 2024 12:57
@CasperWA CasperWA marked this pull request as ready for review April 25, 2024 13:01
@CasperWA CasperWA requested a review from Treesarj April 25, 2024 13:01
@CasperWA CasperWA merged commit e013aee into main Apr 26, 2024
17 checks passed
@CasperWA CasperWA deleted the cwa/close-129-strict-option branch April 26, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ New option --strict for the validate command
2 participants