3cfc6361f4
All changes includes were either made by black and isort or requested by flake8. Change-Id: Ie7998d722ea4a7d4106d106c1476b3f1255d656a
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
---
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
|
rev: v3.4.0
|
|
hooks:
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: mixed-line-ending
|
|
- id: check-byte-order-marker
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: debug-statements
|
|
language_version: python3
|
|
- repo: https://github.com/adrienverge/yamllint.git
|
|
rev: v1.26.1
|
|
hooks:
|
|
- id: yamllint
|
|
files: \.(yaml|yml)$
|
|
types: [file, yaml]
|
|
entry: yamllint --strict
|
|
- id: yamllint
|
|
name: queries-key-ordering
|
|
files: src\/data\/queries\.yml$
|
|
entry: >
|
|
yamllint --strict -d "rules: { key-ordering: enable }"
|
|
- repo: https://github.com/pre-commit/mirrors-isort
|
|
rev: v5.8.0
|
|
hooks:
|
|
- id: isort
|
|
args:
|
|
# https://github.com/pre-commit/mirrors-isort/issues/9#issuecomment-624404082
|
|
- --filter-files
|
|
- repo: https://github.com/python/black.git
|
|
rev: 20.8b1
|
|
hooks:
|
|
- id: black
|
|
language_version: python3
|
|
- repo: https://github.com/pycqa/flake8.git
|
|
rev: 3.9.1
|
|
hooks:
|
|
- id: flake8
|
|
language_version: python3
|
|
additional_dependencies:
|
|
- flake8-2020>=1.6.0
|
|
- flake8-docstrings>=1.5.0
|
|
- flake8-pytest-style>=1.2.2
|