Add these snippets to vscode yaml snippets to quickly add preconfigured snippets for .pre-commit-config.yaml
pre-commit config.
Created
August 20, 2021 13:45
Pre-commit vscode snippets
This file contains hidden or 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
{ | |
"CloudFormation Precommit": { | |
"body": [ | |
" - repo: https://github.com/aws-cloudformation/cfn-python-lint", | |
" rev: v0.48.2", | |
" hooks:", | |
" - id: cfn-python-lint", | |
" files: template.yaml", | |
" - repo: https://github.com/adrienverge/yamllint.git", | |
" rev: v1.26.0", | |
" hooks:", | |
" - id: yamllint", | |
" args: [\"-d relaxed\"]" | |
], | |
"description": "CloudFormation Pre-commit Configuration" | |
}, | |
"Standard Precommit": { | |
"body": [ | |
"repos:", | |
" - repo: https://github.com/pre-commit/pre-commit-hooks", | |
" rev: v3.4.0", | |
" hooks:", | |
" - id: end-of-file-fixer", | |
" - id: trailing-whitespace", | |
" - id: check-added-large-files" | |
], | |
"description": "Generic Pre-commit Configuration" | |
}, | |
"Python Precommit": { | |
"body": [ | |
" - repo: https://github.com/pycqa/flake8", | |
" rev: '3.9.2'", | |
" hooks:", | |
" - id: flake8", | |
" - repo: https://github.com/psf/black", | |
" rev: stable", | |
" hooks:", | |
" - id: black", | |
" language_version: python3.8", | |
" - repo: https://github.com/pycqa/isort", | |
" rev: 5.8.0", | |
" hooks:", | |
" - id: isort", | |
" name: isort (python)", | |
" - id: isort", | |
" name: isort (cython)", | |
" types: [cython]", | |
" - id: isort", | |
" name: isort (pyi)", | |
" types: [pyi]" | |
], | |
"description": "CloudFormation Pre-commit Configuration" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment