Skip to content

Commit

Permalink
Update pre-commit and add new hooks (#7781)
Browse files Browse the repository at this point in the history
* update precommit

* Update .pre-commit-config.yaml

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>

* Apply suggestions from code review

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
  • Loading branch information
Borda and carmocca authored Jun 1, 2021
1 parent 0dd6d3a commit 0b6fd1d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,28 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-toml

- repo: https://github.com/PyCQA/isort
rev: 5.8.0
hooks:
- id: isort
args: [--settings-path, ./pyproject.toml]
name: Format imports

- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.31.0
hooks:
- id: yapf
args: [--parallel, --in-place]
name: Format code
language: python

- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
name: Check PEP8

0 comments on commit 0b6fd1d

Please sign in to comment.