Skip to content

Instantly share code, notes, and snippets.

@spy7
Last active November 18, 2021 11:10
Show Gist options
  • Select an option

  • Save spy7/7b7d5692df89e0fd760870aa95f3d2d2 to your computer and use it in GitHub Desktop.

Select an option

Save spy7/7b7d5692df89e0fd760870aa95f3d2d2 to your computer and use it in GitHub Desktop.
Pre-commit
[flake8]
max-line-length = 88
ignore=Q000,W503
[settings]
force_grid_wrap=0
include_trailing_comma=True
line_length=88
multi_line_output=3
use_parentheses=True
{
"default": true,
"MD007": {
"indent": 4
},
"MD013": {
"tables": false
},
"MD025": {
"front_matter_title": ""
},
"MD033": {
"allowed_elements": [
"br"
]
}
}
# 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: v4.0.1
hooks:
- id: check-yaml
- id: check-json
- id: check-added-large-files
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
args: ['--ignore=W503']
additional_dependencies: [
"flake8-print"
]
- repo: https://github.com/psf/black
rev: 21.11b0
hooks:
- id: black
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.29.0
hooks:
- id: markdownlint
args: [--fix]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment