forked from mosaicml/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
70 lines (70 loc) · 2.09 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
default_language_version:
python: python3
repos:
- repo: https://github.com/google/yapf
rev: v0.32.0
hooks:
- id: yapf
name: yapf
description: "A formatter for Python files."
entry: yapf
args: [-i, -vv, -p] #inplace
language: python
types: [python]
additional_dependencies:
- "toml"
- repo: https://github.com/pycqa/isort
hooks:
- id: isort
rev: 5.10.1
# - repo: https://github.com/pycqa/pylint
# hooks:
# - id: pylint
# entry: pylint
# args: ['composer', 'examples', 'tests']
# language: python
# types: [python]
# require_serial: true
# rev: v2.12.2
- repo: local
hooks:
- id: pyright
name: pyright
entry: pyright
language: node
types: [python]
pass_filenames: false
args: [--warnings]
additional_dependencies: ["pyright@1.1.243"]
# - repo: https://github.com/PyCQA/pydocstyle
# hooks:
# - id: pydocstyle
# name: pydocstyle
# entry: pydocstyle
# language: python
# types: [python]
# additional_dependencies:
# - "toml"
# rev: 6.1.1
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
# - id: trailing-whitespace # TODO(ravi): Enable this check later. Generates a large diff.
# - id: end-of-file-fixer # TODO(ravi): Enable this check later. Generates a large diff.
- id: check-docstring-first
- id: check-yaml
- id: debug-statements
# - id: name-tests-test # TODO(ravi): Enable this check later. Generates a large diff.
# args: ['--django']
# - id: double-quote-string-fixer # TODO(ravi): Enable this check later. Generates a large diff.
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.13
hooks:
- id: insert-license
files: composer
args:
- --license-filepath
- .ci/FILE_HEADER
- --comment-style
- "#"
types: [python]