-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
141 lines (123 loc) · 3.35 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# This file is managed by 'repo_helper'. Don't edit it directly.
---
exclude: ^$
ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/repo-helper/pyproject-parser
rev: v0.11.1
hooks:
- id: reformat-pyproject
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: fix-byte-order-marker
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: detect-private-key
- id: trailing-whitespace
- id: mixed-line-ending
- id: end-of-file-fixer
- repo: https://github.com/domdfcoding/pre-commit-hooks
rev: v0.4.0
hooks:
- id: requirements-txt-sorter
args:
- --allow-git
- id: check-docstring-first
exclude: ^(doc-source/conf|__pkginfo__|setup|tests/.*)\.py$
- id: bind-requirements
- repo: https://github.com/python-formate/flake8-dunder-all
rev: v0.4.1
hooks:
- id: ensure-dunder-all
files: ^dependency_dash/.*\.py$
- repo: https://github.com/domdfcoding/flake2lint
rev: v0.4.3
hooks:
- id: flake2lint
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-no-eval
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/asottile/pyupgrade
rev: v2.12.0
hooks:
- id: pyupgrade
args:
- --py36-plus
- --keep-runtime-typing
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: remove-crlf
- id: forbid-crlf
- repo: https://github.com/python-formate/snippet-fmt
rev: v0.1.5
hooks:
- id: snippet-fmt
- repo: https://github.com/python-formate/formate
rev: v0.7.0
hooks:
- id: formate
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
- repo: https://github.com/python-coincidence/dep_checker
rev: v0.8.0
hooks:
- id: dep_checker
args:
- dependency_dash
# Custom hooks can be added below this comment
- repo: https://github.com/awebdeveloper/pre-commit-stylelint
rev: 8f63da497580898a7e0ceef6bf9e72cc0af07828
hooks:
- id: stylelint
additional_dependencies:
args:
- --fix
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.32.0
hooks:
- id: eslint
args:
- --fix
additional_dependencies:
- repo: local
hooks:
- id: convert-images
language: node
name: Convert images to modern web formats
entry: ./scripts/convert_images.sh
files: ^dependency_dash/static/img/(cookies.jpg|not-found.png)$
additional_dependencies:
- https://gitpkg.now.sh/repo-helper/squoosh/cli?dev
- repo: local
hooks:
- id: compile-css
language: node
name: Compile SCSS and minify css
entry: ./scripts/rebuild_css.sh
always_run: true
pass_filenames: false
additional_dependencies: