Commit b2c0142f authored by Jonas Kaufmann's avatar Jonas Kaufmann Committed by Antoine Kaufmann
Browse files

adds pre-commit configuration including yapf

can be set up using `pre-commit install`
parent 9ad962df
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- repo: https://github.com/PyCQA/docformatter
rev: v1.4
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries=80, --wrap-descriptions=80, --pre-summary-newline]
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
[style]
based_on_style = google
dedent_closing_brackets = true
coalesce_brackets = true
split_all_top_level_comma_separated_values = true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment