-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add black formatting in tox + rev ignore in git blame
As part of our effort to standardize our project repos, we are adding black formatting to freshmaker in tox. This commit: - adds a step with `black --check` in tox, to verify the code is well formatted - adds a `.git-blame-ignore-revs` file to keep track of large reformatting commits that should be ignored by `git blame` - adds instructions on how to use `.git-blame-ignore-revs` automatically in a local environment - add E203 to flake8 ignores, to prevent conflicts with black's style For more information, please see the following links: https://black.readthedocs.io/en/stable/guides/introducing_black_to_your_project.html https://akrabat.com/ignoring-revisions-with-git-blame/ https://stackoverflow.com/questions/34957237/can-i-configure-git-blame-to-always-ignore-certain-commits-want-to-fix-git-blam/57129540#57129540 https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view JIRA: CWFHEALTH-2279
- Loading branch information
1 parent
e306144
commit c4b864f
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Have a look at | ||
# https://stackoverflow.com/questions/34957237/can-i-configure-git-blame-to-always-ignore-certain-commits-want-to-fix-git-blam/57129540#57129540 | ||
# https://akrabat.com/ignoring-revisions-with-git-blame/ | ||
# https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view | ||
|
||
# Run code through black for formatting | ||
e3061441e1492f44386d10b1c6426162e6d0c81c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters