Skip to content

Commit d3db50f

Browse files
committed
pre-commit
1 parent ef7d97d commit d3db50f

File tree

3 files changed

+346
-2
lines changed

3 files changed

+346
-2
lines changed

.pre-commit-config.yaml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
exclude: 'setup.cfg'
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v1.2.1-1
5+
hooks:
6+
- id: pretty-format-json
7+
name: Pretty format JSON
8+
args:
9+
- --no-sort-keys
10+
11+
- id: trailing-whitespace
12+
name: Fix trailing whitespace
13+
14+
- id: end-of-file-fixer
15+
name: Fix missing EOF
16+
17+
- id: check-executables-have-shebangs
18+
name: Check exeutables for shebangs
19+
20+
- id: check-added-large-files
21+
name: Check for any large files added
22+
23+
- id: check-merge-conflict
24+
name: Check for merge conflict fragments
25+
26+
- id: check-case-conflict
27+
name: Check for filesystem character case conflicts
28+
29+
- id: detect-private-key
30+
name: Check for cleartext private keys stored
31+
32+
- id: flake8
33+
name: Check for Python style guideline violations
34+
35+
- id: check-yaml
36+
name: Validate YAML
37+
38+
id: fix-encoding-pragma
39+
name: Check for utf-8 encoding
40+
41+
- id: check-json
42+
name: Validate JSON
43+
44+
- id: check-ast
45+
name: Check Python abstract syntax tree
46+
47+
- id: double-quote-string-fixer
48+
name: Replace Python " with '
49+
50+
- id: autopep8-wrapper
51+
args:
52+
- --in-place
53+
- --aggressive
54+
- --aggressive
55+
- --experimental
56+
name: Pretty format Python
57+
58+
- repo: https://github.com/asottile/reorder_python_imports
59+
sha: v1.1.1
60+
hooks:
61+
- id: reorder-python-imports
62+
name: Reorder Python imports
63+
64+
- repo: https://github.com/asottile/add-trailing-comma
65+
sha: v0.7.0
66+
hooks:
67+
- id: add-trailing-comma
68+
name: Fix Python trailing commas
69+
args:
70+
- --py36-plus

Pipfile

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ pyyaml = "*"
1111
slackclient = "*"
1212

1313
[dev-packages]
14+
bumpversion = "*"
15+
twine = "*"
16+
pre-commit = "*"
1417

1518
[requires]
1619
python_version = "3.7"

Pipfile.lock

+273-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)