1
- fail_fast : true
2
-
1
+ #
2
+ # Licensed to the Apache Software Foundation (ASF) under one or more
3
+ # contributor license agreements. See the NOTICE file distributed with
4
+ # this work for additional information regarding copyright ownership.
5
+ # The ASF licenses this file to You under the Apache License, Version 2.0
6
+ # (the "License"); you may not use this file except in compliance with
7
+ # the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
3
17
repos :
4
- - repo : https://github.com/ambv/black
18
+ - repo : https://github.com/PyCQA/isort
19
+ rev : 5.9.3
20
+ hooks :
21
+ - id : isort
22
+ - repo : https://github.com/pre-commit/mirrors-mypy
23
+ rev : v0.941
24
+ hooks :
25
+ - id : mypy
26
+ additional_dependencies : [types-all]
27
+ - repo : https://github.com/peterdemin/pip-compile-multi
28
+ rev : v2.4.1
29
+ hooks :
30
+ - id : pip-compile-multi-verify
31
+ - repo : https://github.com/pre-commit/pre-commit-hooks
32
+ rev : v3.2.0
33
+ hooks :
34
+ - id : check-docstring-first
35
+ - id : check-added-large-files
36
+ exclude : \.(geojson)$
37
+ - id : check-yaml
38
+ exclude : ^helm/superset/templates/
39
+ - id : debug-statements
40
+ - id : end-of-file-fixer
41
+ - id : trailing-whitespace
42
+ args : ["--markdown-linebreak-ext=md"]
43
+ - repo : https://github.com/psf/black
5
44
rev : 22.3.0
6
45
hooks :
7
46
- id : black
8
- args : [--diff, --check]
9
-
10
- - repo : https://github.com/pre-commit/mirrors-pylint
11
- rev : v3.0.0a3
47
+ language_version : python3
48
+ - repo : https://github.com/pre-commit/mirrors-prettier
49
+ rev : v2.4.1 # Use the sha or tag you want to point at
12
50
hooks :
13
- - id : pylint
14
- args : [--disable=all, --enable=unused-import]
15
-
16
- - repo : https://github.com/pre-commit/mirrors-mypy
17
- rev : v0.902
51
+ - id : prettier
52
+ args : ['--ignore-path=./superset-frontend/.prettierignore']
53
+ files : ' superset-frontend'
54
+ # blacklist unsafe functions like make_url (see #19526)
55
+ - repo : https://github.com/skorokithakis/blacklist-pre-commit-hook
56
+ rev : e2f070289d8eddcaec0b580d3bde29437e7c8221
18
57
hooks :
19
- - id : mypy
20
- exclude : ^tests/
21
- args : [--strict]
58
+ - id : blacklist
59
+ args : ["--blacklisted-names=make_url", "--ignore=tests/"]
0 commit comments