Skip to content

Commit

Permalink
Update pre-commit-config.yaml (#3911)
Browse files Browse the repository at this point in the history
* only run isort on python source files

* update the flake8 hook

* update whats-new.rst
  • Loading branch information
keewis authored Mar 28, 2020
1 parent 79513b7 commit ca6bb85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ 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
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
Expand Down
3 changes: 3 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ Documentation

Internal Changes
~~~~~~~~~~~~~~~~
- Run the ``isort`` pre-commit hook only on python source files
and update the ``flake8`` version. (:issue:`3750`, :pull:`3711`)
By `Justus Magin <https://github.com/keewis>`_.


.. _whats-new.0.15.1:
Expand Down

0 comments on commit ca6bb85

Please sign in to comment.