Skip to content

Commit 015d318

Browse files
committed
Add pre-commit-config
1 parent b824342 commit 015d318

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.pre-commit-config.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
repos:
2+
- repo: https://github.com/PyCQA/flake8
3+
rev: 3.9.2
4+
hooks:
5+
- id: flake8
6+
additional_dependencies: ["flake8-eradicate==0.4.0"]
7+
8+
- repo: https://github.com/patrick91/pre-commit-alex
9+
rev: aa5da9e54b92ab7284feddeaf52edf14b1690de3
10+
hooks:
11+
- id: alex
12+
exclude: CHANGELOG.md
13+
14+
- repo: https://github.com/pre-commit/mirrors-prettier
15+
rev: v2.3.2
16+
hooks:
17+
- id: prettier
18+
files: '^docs/.*\.mdx?$'
19+
20+
- repo: https://github.com/pre-commit/pre-commit-hooks
21+
rev: v4.0.1
22+
hooks:
23+
- id: trailing-whitespace
24+
- id: check-merge-conflict
25+
- id: end-of-file-fixer
26+
- id: check-toml
27+
28+
- repo: https://github.com/humitos/mirrors-autoflake.git
29+
rev: v1.1
30+
hooks:
31+
- id: autoflake
32+
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
33+
34+
- repo: https://github.com/psf/black
35+
rev: 21.8b0
36+
hooks:
37+
- id: black

0 commit comments

Comments
 (0)