Skip to content

Commit 9353044

Browse files
committed
Updated pre-commit hooks.
1 parent ff812ec commit 9353044

File tree

1 file changed

+37
-3
lines changed

1 file changed

+37
-3
lines changed

.pre-commit-config.yaml

+37-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,41 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
3+
4+
# Don't run pre-commit on files under build/ - currently happens by default
5+
# delete and uncomment if needed
6+
#exclude: "^\
7+
# (build/.*)\
8+
# "
9+
310
repos:
4-
- repo: https://github.com/pycqa/flake8
5-
rev: '3.9.2' # pick a git hash / tag to point to
11+
- repo: https://github.com/pre-commit/pre-commit-hooks
12+
rev: v4.2.0
613
hooks:
7-
- id: flake8
14+
- id: check-added-large-files # prevents giant files from being committed.
15+
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
16+
- id: check-merge-conflict # checks for files that contain merge conflict strings.
17+
- id: check-yaml # checks yaml files for parseable syntax.
18+
- id: detect-private-key # detects the presence of private keys.
19+
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
20+
- id: fix-byte-order-marker # removes utf-8 byte order marker.
21+
- id: mixed-line-ending # replaces or checks mixed line ending.
22+
- id: requirements-txt-fixer # sorts entries in requirements.txt.
23+
- id: trailing-whitespace # trims trailing whitespace.
24+
- id: check-docstring-first # Checks that code comes after the docstrings.
25+
26+
- repo: https://github.com/pre-commit/mirrors-prettier
27+
rev: v2.6.2
28+
hooks:
29+
- id: prettier
30+
files: \.(js|ts|jsx|tsx|css|less|html|json|markdown|md|yaml|yml)$
31+
32+
- repo: https://github.com/psf/black
33+
rev: 22.3.0
34+
hooks:
35+
- id: black
36+
37+
- repo: https://github.com/PyCQA/isort
38+
rev: 5.10.1
39+
hooks:
40+
- id: isort
41+
args: [--profile=black]

0 commit comments

Comments
 (0)