Lint on GitHub Actions via pre-commit#159
Conversation
|
I triggered a test run on https://github.com/python/python-docs-theme/actions/runs/6482294214/job/17601524907 Running the same command passes for me locally. |
| @@ -0,0 +1,2 @@ | |||
| [flake8] | |||
| max-line-length = 88 | |||
There was a problem hiding this comment.
Can/should this specified with a --flag (or disabled if black already checks this)?
If we do we can get rid of this file.
There was a problem hiding this comment.
It could be done with a flag, but then it would only apply to that invocation with the flag, and not if we run Flake8 myself from the command line. This file means it is read by both.
We can't remove it either. Black will set some files to 88 chars wide, and then Flake8 would complain because it's over 80.
| @@ -0,0 +1,2 @@ | |||
| [flake8] | |||
| max-line-length = 88 | |||
Add some pre-commit checks and apply autofixes. Also some minor config updates.
I also ran https://github.com/tox-dev/pyproject-fmt/ to reformat
pyproject.tomlto standardise it and make it much easier to compare with other repos. However, I didn't add it to pre-commit because it strips out the 3.13 classifier.