Last active
February 11, 2020 16:39
-
-
Save mateuspadua/0f71cfd3a65f82dfba61407db7a5a3d9 to your computer and use it in GitHub Desktop.
How add pre-commit on project
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
[flake8] | |
max-line-length = 88 | |
exclude=*/migrations/* |
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
[settings] | |
force_grid_wrap=0 | |
include_trailing_comma=True | |
line_length=88 | |
multi_line_output=3 | |
use_parentheses=True |
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
{ | |
"default": true, | |
"MD013": false, | |
"MD041": false | |
} |
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
# See https://pre-commit.com for more information | |
# See https://pre-commit.com/hooks.html for more hooks | |
repos: | |
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v2.4.0 | |
hooks: | |
- id: check-yaml | |
- id: check-json | |
- id: check-added-large-files | |
- id: end-of-file-fixer | |
- id: trailing-whitespace | |
- id: flake8 | |
additional_dependencies: [ | |
"flake8-print==3.1.4" | |
] | |
- repo: https://github.com/psf/black | |
rev: 19.10b0 | |
hooks: | |
- id: black | |
- repo: https://github.com/timothycrosley/isort | |
rev: 4.3.21 | |
hooks: | |
- id: isort | |
args: [-rc] | |
- repo: https://github.com/igorshubovych/markdownlint-cli | |
rev: v0.21.0 | |
hooks: | |
- id: markdownlint | |
args: [--fix] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Done, :)