style: fix target Python version for Black pre-commit hook#431
Conversation
Codecov Report
@@ Coverage Diff @@
## main #431 +/- ##
=======================================
Coverage 66.88% 66.88%
=======================================
Files 11 11
Lines 897 897
=======================================
Hits 600 600
Misses 297 297 Continue to review full report at Codecov.
|
|
This is changing docs/conf.py - we can add it to the ignores if you would prefer it not be changed. |
|
Why are non-Python files affected? |
|
Because |
|
Yeah, but pre-commit hooks only run on the files that have changed. Those .rst files weren't supposedly altered by this change. |
|
I always run |
|
Interesting. While researching I found that the pre-commit Github action is currently unmaintained and directs to https://pre-commit.ci/ instead. Should I enable that service for this repo? |
|
I'd recommend it, I really like it (and it's enabled for a few of the other PyPA repos). |
|
Ok, it's enabled now. |
|
Took 6.9 seconds. :) |
|
I should nix the |
|
Thanks for this PR and all the extra info. This was quite enlightening. |
This fixes a bug in the pre-commit configuration -
language-versioncontrols the pre-commit hook, not the black language target. So this was actually targeting the black default language version (2.7 or 3.6 or generic), and it was only working on a machine that had Python 3.7 installed.