-
Notifications
You must be signed in to change notification settings - Fork 28
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
Adds pre-commit #64
Adds pre-commit #64
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #64 +/- ##
===========================================
+ Coverage 86.88% 87.37% +0.49%
===========================================
Files 21 21
Lines 488 507 +19
===========================================
+ Hits 424 443 +19
Misses 64 64
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great, thanks @BradyPlanden. Looking forward to using ruff (at least in the background)
- name: Check formatting with pre-commit | ||
run: | | ||
python -m pip install pre-commit | ||
pre-commit run ruff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, ruff is the shiny new toy :)
.pre-commit-config.yaml
Outdated
additional_dependencies: [ruff==0.0.284] | ||
args: ["--fix","--ignore=E501,E402"] | ||
|
||
# - repo: https://github.com/adamchainz/blacken-docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this or can be deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I thought of leaving it for when we have the docs up and sorted, but we can just add it then.
This PR adds the following (and closes #58):