Skip to content

Commit 0b6fd1d

Browse files
Bordacarmocca
andauthored
Update pre-commit and add new hooks (#7781)
* update precommit * Update .pre-commit-config.yaml Co-authored-by: Carlos Mocholí <[email protected]> * Apply suggestions from code review Co-authored-by: Carlos Mocholí <[email protected]> Co-authored-by: Carlos Mocholí <[email protected]>
1 parent 0dd6d3a commit 0b6fd1d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,28 @@ repos:
1919
- repo: https://github.com/pre-commit/pre-commit-hooks
2020
rev: v4.0.1
2121
hooks:
22-
- id: trailing-whitespace
2322
- id: end-of-file-fixer
23+
- id: trailing-whitespace
24+
- id: check-yaml
25+
- id: check-docstring-first
26+
- id: check-executables-have-shebangs
27+
- id: check-toml
2428

2529
- repo: https://github.com/PyCQA/isort
2630
rev: 5.8.0
2731
hooks:
2832
- id: isort
29-
args: [--settings-path, ./pyproject.toml]
33+
name: Format imports
3034

3135
- repo: https://github.com/pre-commit/mirrors-yapf
3236
rev: v0.31.0
3337
hooks:
3438
- id: yapf
35-
args: [--parallel, --in-place]
39+
name: Format code
40+
language: python
41+
42+
- repo: https://github.com/PyCQA/flake8
43+
rev: 3.9.2
44+
hooks:
45+
- id: flake8
46+
name: Check PEP8

0 commit comments

Comments
 (0)