Skip to content

Commit e0a3cb2

Browse files
committed
Add pre-commit configuration
1 parent 9676835 commit e0a3cb2

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.dictionary.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ists
2+
commitish
3+
atleast
4+
alpha-numeric

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
exclude: docs/_vendor/
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v4.0.1
7+
hooks:
8+
- id: trailing-whitespace
9+
- id: end-of-file-fixer
10+
- id: check-yaml
11+
- id: check-ast
12+
- id: check-added-large-files
13+
- id: check-merge-conflict
14+
- id: check-shebang-scripts-are-executable
15+
- id: mixed-line-ending
16+
- repo: https://github.com/golangci/golangci-lint
17+
rev: v1.43.0
18+
hooks:
19+
- id: golangci-lint
20+
- repo: https://github.com/codespell-project/codespell
21+
rev: v2.1.0
22+
hooks:
23+
- id: codespell
24+
args: [--ignore-words=.dictionary.txt]
25+
- repo: https://github.com/asottile/pyupgrade
26+
rev: v2.29.0
27+
hooks:
28+
- id: pyupgrade
29+
- repo: https://github.com/PyCQA/isort
30+
rev: 5.10.0
31+
hooks:
32+
- id: isort

0 commit comments

Comments
 (0)