Skip to content

Commit 5cff9a1

Browse files
author
Johan Lübcke
committed
Improve pre-commit hooks
1 parent 04a8720 commit 5cff9a1

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 22.3.0
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
44
hooks:
5-
- id: black
6-
language_version: python3.8
7-
- repo: https://gitlab.com/pycqa/flake8
5+
- id: end-of-file-fixer
6+
- id: trailing-whitespace
7+
- id: no-commit-to-branch
8+
args: [ --branch, master ]
9+
10+
- repo: https://github.com/psf/black
11+
rev: 22.8.0
12+
hooks:
13+
- id: black
14+
language_version: python3.8
15+
- repo: https://gitlab.com/pycqa/flake8
816
rev: 3.7.9
917
hooks:
10-
- id: flake8
18+
- id: flake8

0 commit comments

Comments
 (0)