From 44da1aa038d00f4a9e169549c06a57c1f944922b Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Sun, 11 Oct 2020 15:09:34 +0100 Subject: [PATCH 1/2] upgrade isort, clean up flake8 --- .pre-commit-config.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 39fe509c6cd29..5600bb2da444f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,24 +9,24 @@ repos: - id: flake8 additional_dependencies: [flake8-comprehensions>=3.1.0] - id: flake8 - name: flake8-pyx - files: \.(pyx|pxd)$ - types: - - file + name: flake8 (cython) + types: [cython] args: [--append-config=flake8/cython.cfg] - id: flake8 - name: flake8-pxd + name: flake8 (cython template) files: \.pxi\.in$ types: - file args: [--append-config=flake8/cython-template.cfg] - repo: https://github.com/PyCQA/isort - rev: 5.6.0 + rev: 5.6.3 hooks: - id: isort - exclude: ^pandas/__init__\.py$|^pandas/core/api\.py$ - files: '.pxd$|.py$' - types: [file] + name: isort (python) + types: [python] + - id: isort + name: isort (cython) + types: [cython] - repo: https://github.com/asottile/pyupgrade rev: v2.7.2 hooks: From 0ce645c89336e7431443b0d5ff61f09ca4d84db7 Mon Sep 17 00:00:00 2001 From: Marco Gorelli Date: Sun, 11 Oct 2020 15:29:35 +0100 Subject: [PATCH 2/2] remove unnecessary types: [python] --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5600bb2da444f..5b8b58a6a82f8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,6 @@ repos: hooks: - id: isort name: isort (python) - types: [python] - id: isort name: isort (cython) types: [cython]