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

added pre-commit hooks with isort, black and flake8 #152

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

cosimoNigro
Copy link
Owner

@cosimoNigro cosimoNigro commented Sep 1, 2023

This PR adds pre-commit hooks.

After installing the pre-commit package, when the developer commits, the code will be automatically checked for compliance with black and flake8. This should remove the need to run black manually each time, a practice that often introduces formatting changes different for different developers (different black versions used).

The pre-commit config file is copied from gammapy.

A useful tutorial here.

@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Merging #152 (a3f6089) into master (b72c94f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #152   +/-   ##
=======================================
  Coverage   96.95%   96.95%           
=======================================
  Files          40       40           
  Lines        3318     3318           
=======================================
  Hits         3217     3217           
  Misses        101      101           
Flag Coverage Δ
unittests 96.95% <ø> (ø)

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

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cosimoNigro cosimoNigro merged commit 717bece into master Sep 1, 2023
5 checks passed
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.

1 participant