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

Template version #30

Merged
merged 27 commits into from
Nov 19, 2019
Merged

Template version #30

merged 27 commits into from
Nov 19, 2019

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Sep 27, 2019

Checklist:

@codecov
Copy link

codecov bot commented Sep 27, 2019

Codecov Report

Merging #30 into master will increase coverage by 1.6%.
The diff coverage is 60.9%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #30     +/-   ##
=========================================
+ Coverage   40.57%   42.17%   +1.6%     
=========================================
  Files          12       13      +1     
  Lines         456      524     +68     
=========================================
+ Hits          185      221     +36     
- Misses        271      303     +32
Impacted Files Coverage Δ
autohooks/settings.py 100% <ø> (ø)
autohooks/install.py 0% <0%> (-66.67%) ⬇️
autohooks/cli/check.py 0% <0%> (ø) ⬆️
autohooks/precommit/run.py 0% <0%> (ø) ⬆️
autohooks/cli/activate.py 0% <0%> (ø) ⬆️
autohooks/template.py 100% <100%> (ø) ⬆️
autohooks/hooks.py 100% <100%> (ø)
autohooks/config.py 98.03% <100%> (ø) ⬆️
autohooks/terminal.py 68.75% <50%> (-2.68%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9f8585...a6cec0d. Read the comment docs.

This will allow to improve checks on the installed git hook.
Just check if the installed git hook contains autohooks.precommit.
The module will be responsible for writing a pre commit hook and
evaluating an existing pre commit hook.
Don't return the list of lines. Instead return the text as string as
already specified with the typings.
''.split always returns a list of at least one element.
Make it obvious at first read that an error has occurred if authooks
couldn't be loaded.
Return the path to the pre commit hook file when converting to string.
Add tests for PreCommitHook class and get_pre_commit_hook_path function.
Add a function for checking the pre commit hook and another one for
checking the current config.
Use dot consistently in all messages.
These functions got replaced with using the PreCommitHook class.
These checks are only recommondations and should not raise errors.
When running the pre-commit hook check for the current hook version and
the current mode.
Always use autohooks from itself.
@bjoernricks bjoernricks marked this pull request as ready for review November 15, 2019 12:51
@bjoernricks bjoernricks merged commit bbd980a into greenbone:master Nov 19, 2019
@bjoernricks bjoernricks deleted the template-version branch November 19, 2019 12:44
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.

None yet

2 participants