-
Notifications
You must be signed in to change notification settings - Fork 240
Adopt Black code-style. Also add support for pre-commit workflow. #402
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
Comments
i hope a lot, that this makes it easier for contributors and reviewers. with regards to eve, it totally makes sense. there's just one thing that i really don't like: forced double quotes (and i know that i'm sentimental here). so i'd say we opt that out. would there something to be minded now for the case that black may be dropped again? |
i set this to the 1.3 milestone. okay? |
Yes, I am not particularly fond of the double quote thing. When I added it to Eve there was no opt-out option and now it is a little bit too late (I have to admit that once the code has been reformatted, it looks pretty even with the doubles! - and you can keep coding with singles, black will fix them for you). Ok with the 1.3 milestone. |
PS: besides all the ramblings, I'm fine with opting out of the double quotes. |
pytest now styles its docs with black. well, the code snippets in it. huh, cerberus/docs/includes/generate.py Line 54 in 9e3e044
|
- If pre-commit is installed linting is performed on every commit. Linting checks and fixes are only applied to staged files. - 'tox -e linting' will perform linting checks and fixes on all files in the repository Addresses #402
Performm linting checks as first stage. On failure, do not run the test suite. Addresses #402
I am loving the new workflow we have in Eve. With Black and other linters/fixers hooked into pre-commit, we have a code standard guarantee which also happens to be remarkably readable.
As mentioned in #383, what about doing the same thing with Cerberus?
The text was updated successfully, but these errors were encountered: