Repository navigation
Run pyupgrade in CI - #5327
Run pyupgrade in CI#5327
Conversation
0df229a to
bdd7242
Compare
|
You changed your mind, it seems #4741 (comment) ;) FYI There is an issue with cythonization for things like |
|
I had forgotten about the cython issue. 😠 What mostly made me change my mind re pyupgrade is #2803 - if we're adding mypy, it becomes pretty much necessary to ask the users to run the pre-commit instead of the individual list of linters, at which point the attrition involved in adding one more becomes negligible (as long as the linter itself always does what's desirable, obviously). All test failures are unrelated. (see #5329 for partial remediation). |
| @@ -1,4 +1,3 @@ | |||
|
|
|||
There was a problem hiding this comment.
See #4741 (comment) a short discussion about the versioneer file.
I don't have a strong opinion
There was a problem hiding this comment.
+1 I would prefer to not touch our versioneer-related files. Does pyupgrade have an option to exclude a specified set of files?
There was a problem hiding this comment.
It exposes a whitelist of files, but not a blacklist. So I could exclude distributed/versioneer.py but I can't exclude distributed/distributed/_version.py.
fjetter
left a comment
There was a problem hiding this comment.
LGTM
cc @jrbourbeau any objections to us requiring users to use pre-commit?
Is there "developer docs" page we should also update?
|
@fjetter good call. I added to the docs. |
| - [ ] Closes #xxxx | ||
| - [ ] Tests added / passed | ||
| - [ ] Passes `black distributed` / `flake8 distributed` / `isort distributed` | ||
| - [ ] Passes `pre-commit run --all-files` |
There was a problem hiding this comment.
cc @jakirkham @jacobtomlinson. This PR is proposing we switch to using pre-commit to run all code style checks instead of enumerating the individual checks that are made and documenting pre-commit as optional. I'm okay with this, but wanted to flag this for your thoughts as well
jacobtomlinson
left a comment
There was a problem hiding this comment.
Using pre-commit to run linting is my preferred route these days. So I'm +1 on this.
|
Seems like we have a consensus, merging |
Related to #2803