From d3fda521bc2e2684643a46103ecece816b53842b Mon Sep 17 00:00:00 2001 From: Zhijian Liu Date: Tue, 23 Nov 2021 19:01:17 -0500 Subject: [PATCH] Reformat `.pre-commit-config.yaml` (#26) --- .pre-commit-config.yaml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 33cb19a..67c71f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: name: (Common) Remove trailing whitespaces - id: mixed-line-ending name: (Common) Fix mixed line ending - args: ['--fix=lf'] + args: [--fix=lf] - id: end-of-file-fixer name: (Common) Remove extra EOF newlines - id: check-merge-conflict @@ -15,7 +15,7 @@ repos: name: (Common) Sort "requirements.txt" - id: fix-encoding-pragma name: (Python) Remove encoding pragmas - args: ['--remove'] + args: [--remove] - id: double-quote-string-fixer name: (Python) Fix double-quoted strings - id: debug-statements @@ -36,7 +36,7 @@ repos: hooks: - id: pyupgrade name: (Python) Update syntax for newer versions - args: ['--py36-plus'] + args: [--py36-plus] - repo: https://github.com/google/yapf rev: v0.31.0 hooks: @@ -57,10 +57,18 @@ repos: hooks: - id: flake8 name: (Python) Check with flake8 - additional_dependencies: [flake8-bugbear, flake8-comprehensions, flake8-docstrings, flake8-executable, flake8-quotes] + additional_dependencies: + - flake8-bugbear + - flake8-comprehensions + - flake8-docstrings + - flake8-executable + - flake8-quotes - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.902 hooks: - id: mypy name: (Python) Check with mypy - additional_dependencies: [tokenize-rt, types-pyyaml, types-toml] + additional_dependencies: + - tokenize-rt + - types-pyyaml + - types-toml