query_analysis / .pre-commit-config.yaml
chicham
Feature/ci (#5)
3a5739d unverified
exclude: '(\_pb2\.py)$|(\_pb2\_grpc.py)$'
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
exclude: .*\.(whl|run)
- id: end-of-file-fixer
exclude: .*\.(whl|run)
- id: check-added-large-files
- id: check-merge-conflict
- id: debug-statements
- id: no-commit-to-branch
args: [--branch, main, --branch, master]
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.6.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.2.1
hooks:
- id: add-trailing-comma
- repo: https://github.com/Yelp/detect-secrets
rev: v1.1.0
hooks:
- id: detect-secrets
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
[
'flake8-bugbear',
'flake8-comprehensions',
'flake8-builtins',
'flake8-eradicate',
'pep8-naming',
]
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
args: [--include="(src|tests|scripts)/"]
require_serial: true
types_or: [python, pyi]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
types: [yaml, markdown]