-
Notifications
You must be signed in to change notification settings - Fork 19
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
Introduce pre-commit hooks #71
Conversation
@sona-patel , with such hooks, it is possible to lint the whole repository (see https://pre-commit.com/#4-optional-run-against-all-the-files) with: pre-commit run --all-files |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #71 +/- ##
=========================================
+ Coverage 0.38% 3.08% +2.69%
=========================================
Files 30 36 +6
Lines 3404 3571 +167
=========================================
+ Hits 13 110 +97
- Misses 3391 3461 +70 ☔ View full report in Codecov by Sentry. |
This PR introduces pre-commit hooks to our repository.
Following discussions with @sona-patel and #49 , in such a way, any new commit to the code will automatically:
black
andflake8
, including for commits on Jupyter notebooks,provided that developers enable pre-commits with (see https://pre-commit.com/#quick-start):
TODODONEjupytext
(see e.g. https://jupytext.readthedocs.io/en/latest/using-pre-commit.html). Will do in a following commit in this PR.