-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: STFT-57 - Prompt for update on linter version mismatch (#3)
* Adds pre-commit config validation and removes pycache files * Adds diff output for mismatched configs * Finishes implementing update check during scan Also updates the update command to re-generate the config so it matches expectations. * Adds unit tests * Fixes secureli test in build pipeline * Makes declining update a non-halting outcome for scan Also corrects 2 bugs: - Incorrectly processing case with missing/added linter and version mismatch at same time - Moved config validation after upgrade check * Updates tests for adjusted functionality * Switches to update instead of upgrade command for config mismatch fix * Renames hash variable and removes unused variables
- Loading branch information
Showing
46 changed files
with
601 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[run] | ||
branch = True | ||
source = secureli | ||
|
||
[report] | ||
fail_under = 90 | ||
omit = | ||
tests/* | ||
*/__init__.py | ||
exclude_lines: | ||
pragma: no cover | ||
@abstractmethod | ||
if __name__ == "__main__": |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.