-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
add automatic code format enforcer - black #813
Changes from 3 commits
d9dbcee
89d8912
c4cf33a
b8ee4a7
2c68d4d
4487ddc
7474be8
8cafe90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
sha: v1.1.1 | ||
rev: v1.2.3 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see above |
||
- id: check-yaml | ||
- id: debug-statements | ||
- id: flake8 | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You'll want to pick a specific tag: https://pre-commit.com/#using-the-latest-version-for-a-repository There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed, and yeah I agree about the quotes; but at the end of day I prefer consistency over which of the two :-) |
||
hooks: | ||
- id: black | ||
args: [--line-length=99, --safe] | ||
python_version: python3.6 | ||
- repo: https://github.com/asottile/pyupgrade | ||
sha: v1.2.0 | ||
rev: v1.2.0 | ||
hooks: | ||
- id: pyupgrade |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,9 @@ | |
.. image:: https://readthedocs.org/projects/tox/badge/?version=latest | ||
:target: http://tox.readthedocs.io/en/latest/?badge=latest | ||
:alt: Documentation status | ||
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg | ||
:target: https://github.com/ambv/black | ||
:alt: Code style: black | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I guess that is the case now :) |
||
|
||
tox automation project | ||
====================== | ||
|
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.
Not necessary with black anymore, I guess.