-
Notifications
You must be signed in to change notification settings - Fork 283
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
pre-commit isort and black --check only for cirrus-ci #4235
Merged
trexfeathers
merged 7 commits into
SciTools:main
from
bjlittle:cirrus-ci-pre-commit-alt-config
Jul 9, 2021
Merged
pre-commit isort and black --check only for cirrus-ci #4235
trexfeathers
merged 7 commits into
SciTools:main
from
bjlittle:cirrus-ci-pre-commit-alt-config
Jul 9, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trexfeathers
reviewed
Jul 9, 2021
trexfeathers
reviewed
Jul 9, 2021
trexfeathers
requested changes
Jul 9, 2021
trexfeathers
approved these changes
Jul 9, 2021
@trexfeathers Right, I'm done now, honest... I'm stepping away from the keyboard |
Thanks guys 🤩 |
@trexfeathers Awesome, thanks 🥂 |
tkknight
added a commit
to tkknight/iris
that referenced
this pull request
Jul 21, 2021
* main: (43 commits) [pre-commit.ci] pre-commit autoupdate (SciTools#4244) Updated environment lockfiles (SciTools#4242) [pre-commit.ci] pre-commit autoupdate (SciTools#4239) Documented the --force option on conda env create (SciTools#4240) Updated environment lockfiles (SciTools#4237) pre-commit isort and black --check only for cirrus-ci (SciTools#4235) Only run docs-building sessions with Python 3.8. (SciTools#4210) consolidate cirrus-ci documentation tasks (SciTools#4219) Updated environment lockfiles (SciTools#4223) Replace pyke nopyke (SciTools#4198) drop cirrus-ci minimal tests (SciTools#4218) remove change management tech paper (SciTools#4217) [pre-commit.ci] pre-commit autoupdate (SciTools#4213) Updated environment lockfiles (SciTools#4212) Widen cube printout for long ancil or cell-measure names. (SciTools#4124) convert docs print statements (SciTools#4209) optimise pre-commit (SciTools#4208) drop black and flake8 dependencies (SciTools#4181) pre-commit blacked docs (SciTools#4205) pre-commit update (SciTools#4204) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 Pull Request
Description
This PR re-instates the
pre-commit
behaviour for theblack
andisort
hooks, whereby they will automatically correct files in-place ongit commit
rather than performing a--check
. This means that developers no longer require to explicitly installblack
orisort
; this will all be managed bypre-commit
.Subsequently, the linting
cirrus-ci
task customises thepre-commit-config.yaml
to ensure thatblack
andisort
only perform a--check
, and will fail when a non-compliance is detected, as required.Closes #4226
Consult Iris pull request check list