Skip to content

Commit

Permalink
CI clean pre-commit: upgrade isort, use correct file types in flake8 (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored and Kevin D Smith committed Nov 2, 2020
1 parent adecfab commit 245c273
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,23 @@ 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)
- id: isort
name: isort (cython)
types: [cython]
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.2
hooks:
Expand Down

0 comments on commit 245c273

Please sign in to comment.