-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
46 lines (40 loc) · 1.46 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
# Copyright 2022 VMware, Inc.
# SPDX-License-Identifier: Apache-2
default_language_version:
python: python3
repos:
# ----- Local Hooks ----------------------------------------------------------------------------------------------->
- repo: local
hooks:
- id: check-changelog-entries
name: Check Changelog Entries
entry: python .pre-commit-hooks/check_changelog_entries.py
language: system
- repo: local
hooks:
- id: check-copyright-headers
name: Check python modules for appropriate copyright headers
files: ^.*\.py$
exclude: setup\.py
entry: python .pre-commit-hooks/copyright_headers.py
language: system
# <---- Local Hooks ------------------------------------------------------------------------------------------------
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
# ----- Code Analysis --------------------------------------------------------------------------------------------->
- repo: https://github.com/pycqa/flake8
rev: '5.0.4'
hooks:
- id: flake8
exclude: ^(\.pre-commit-hooks/.*\.py)$
additional_dependencies:
- flake8-mypy-fork
- flake8-docstrings
- flake8-typing-imports
# <---- Code Analysis ---------------------------------------------------------------------------------------------