-
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
drop black and flake8 dependencies #4181
drop black and flake8 dependencies #4181
Conversation
bddadaf
to
5eb9868
Compare
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.
Thanks @bjlittle.
I like pre-commit being the 'single entry point'. But with that being the case there are a few extra changes I'd like to see:
- Could we change the Nox linting session to do a manual run of pre-commit?
- If we can't do that, what about my previous suggestion to have Nox read the black version from pre-commit?
- Either with the current permutation, or with any of my suggested changes, please could you include some minor documentation changes?
contributing_code_formatting.rst
andcontributing_running_tests.rst
.
@trexfeathers Cool. I'll get And I'll add something to the docs 👍 |
6f57929
to
e386d89
Compare
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.
Thanks @bjlittle, I'm glad you think pre-commit is a good pattern. I have some config suggestions.
d21915f
to
dadbc0f
Compare
@trexfeathers Great, thanks! 🍻 |
* 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) ...
🚀 Pull Request
Description
Akin to PR #4174 and
isort
, this PR drops theblack
andflake
package dependencies from both ourconda
YAML and PyPIsetup.cfg
requirements.We're now advocating the use of
pre-commit
for developers, which will take care of your linting needs. Additionally, developers (and users alike) can easily install these packages explicitly, if they wish.The reason for dropping these packages is to reduce the
iris
dependency bloat, but also due to the regular cadence in version bumping that is required - hardly a major maintenance overhead, but this has cause recent difficulties, particularly withblack
.Consult Iris pull request check list