update: add support for pre-commit #232
No reviewers
Labels
No labels
CRITICAL
Stale
WIP
bug
concept
coordinate
dataset
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
maintenance
maps
marker
mask
on hold
parcellation
preprocess
question
ready
storage
template-space
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
juaml/junifer!232
Loading…
Reference in a new issue
No description provided.
Delete branch "enh/pre-commit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds support for
pre-commitin the codebase and makes necessary changes to adopt it.Codecov Report
100.00% <ø> (ø)93.61% <100.00%> (-0.01%)Flags with carried forward coverage won't be shown. Click here to find out more.
100.00% <ø> (ø)69.14% <ø> (ø)96.42% <ø> (-0.04%)93.33% <ø> (-0.08%)68.70% <ø> (ø)95.55% <ø> (ø)96.23% <100.00%> (ø)94.87% <100.00%> (ø)100.00% <100.00%> (ø)98.08% <100.00%> (-0.01%)can you explain what's the goal behind this PR?
It enables the use of Git hooks specifically
pre-commitvia https://pre-commit.com . The pre-commit checks include everything from spellcheck to linting thus reducing the need for separate lint or spell-check commits and making contribution easy.Is this optional? Or it will not allow to commit if something is off?
Once you do
pre-commit install, it becomes mandatory. If you want to bypass a commit, you need to pass--no-verifyflag togit commit. The docs include the instructions.perfect!
Fix conflicts and LGTM