From a4f2206d4c483406a3844052a9eaed16231f32b3 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Mon, 21 Dec 2020 12:42:29 +0800 Subject: [PATCH] pre-commit: Add double-quote-string-fixer and isort for python files --- .pre-commit-config.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 907eb94c59..cb6b1cee62 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.3.0 + rev: v3.4.0 hooks: - id: trailing-whitespace # note: whitespace exclusions use multiline regex, see https://pre-commit.com/#regular-expressions @@ -26,11 +26,17 @@ repos: files: 'tools/ci/executable-list.txt' - id: mixed-line-ending args: ['-f=lf'] + - id: double-quote-string-fixer - repo: https://gitlab.com/pycqa/flake8 rev: 3.8.4 hooks: - id: flake8 args: ['--config=.flake8', '--tee', '--benchmark'] + - repo: https://github.com/pycqa/isort + rev: 5.6.4 + hooks: + - id: isort + name: isort (python) - repo: local hooks: - id: check-executables