2019-06-25 16:34:48 -04:00
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership.
|
|
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
# (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
repos:
|
2021-10-25 05:57:38 -04:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
|
|
rev: 5.9.3
|
2019-10-18 17:44:27 -04:00
|
|
|
hooks:
|
2020-08-04 22:31:52 -04:00
|
|
|
- id: isort
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2021-08-13 23:31:45 -04:00
|
|
|
rev: v0.910
|
2020-08-04 22:31:52 -04:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2021-08-13 23:31:45 -04:00
|
|
|
additional_dependencies: [types-all]
|
2020-08-04 22:31:52 -04:00
|
|
|
- repo: https://github.com/peterdemin/pip-compile-multi
|
2021-05-14 13:06:40 -04:00
|
|
|
rev: v2.4.1
|
2019-07-08 12:38:36 -04:00
|
|
|
hooks:
|
2020-08-04 22:31:52 -04:00
|
|
|
- id: pip-compile-multi-verify
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v3.2.0
|
|
|
|
hooks:
|
|
|
|
- id: check-docstring-first
|
2020-09-22 01:48:55 -04:00
|
|
|
- id: check-added-large-files
|
2021-11-17 02:31:36 -05:00
|
|
|
exclude: \.(geojson)$
|
2020-08-04 22:31:52 -04:00
|
|
|
- id: check-yaml
|
2020-08-02 17:32:17 -04:00
|
|
|
exclude: ^helm/superset/templates/
|
2020-08-04 22:31:52 -04:00
|
|
|
- id: debug-statements
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
|
|
|
args: ["--markdown-linebreak-ext=md"]
|
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
rev: 19.10b0
|
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
language_version: python3
|
2021-10-20 20:53:52 -04:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2021-11-17 02:31:36 -05:00
|
|
|
rev: v2.4.1 # Use the sha or tag you want to point at
|
2021-10-20 20:53:52 -04:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
files: 'superset-frontend'
|