From 8fb88499e598b86b24bfc39583808a7d31cd5cd1 Mon Sep 17 00:00:00 2001 From: Keewis Date: Sat, 28 Mar 2020 20:16:48 +0100 Subject: [PATCH 1/3] only run isort on python source files --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9df95648774..72b112121b4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,6 +5,7 @@ repos: rev: 4.3.21-2 hooks: - id: isort + files: .+\.py$ # https://github.com/python/black#version-control-integration - repo: https://github.com/python/black rev: stable From f27605adca12b3a3bc0f4cab786ee2ff2653142e Mon Sep 17 00:00:00 2001 From: Keewis Date: Sat, 28 Mar 2020 20:20:10 +0100 Subject: [PATCH 2/3] update the flake8 hook --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 72b112121b4..26bf4803ef6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,8 +11,8 @@ repos: rev: stable hooks: - id: black - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.2.3 + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.7.9 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy From 9a2c92b40b3b803504e2a285b553f624a853c9f6 Mon Sep 17 00:00:00 2001 From: Keewis Date: Sat, 28 Mar 2020 20:30:31 +0100 Subject: [PATCH 3/3] update whats-new.rst --- doc/whats-new.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index a138dee4128..ea07b73c169 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -53,6 +53,9 @@ Internal Changes - Use ``Fixes`` rather than ``Closes`` in GitHub Pull Request template, allowing linking to issues. By `Maximilian Roos `_ +- Run the ``isort`` pre-commit hook only on python source files + and update the ``flake8`` version. (:issue:`3750`, :pull:`3711`) + By `Justus Magin `_. .. _whats-new.0.15.1: