1
1
repos :
2
2
- repo : https://github.com/python/black
3
- rev : 19.3b0
3
+ rev : 22.1.0
4
4
hooks :
5
5
- id : black
6
6
exclude : >
7
7
(?x)^(
8
8
.*_pb2.py|
9
+ .*_pb2.pyi|
9
10
.*_pb2_grpc.py
10
11
)$
11
12
12
13
- repo : https://github.com/pre-commit/mirrors-mypy
13
- rev : v0.761
14
+ rev : v0.931
14
15
hooks :
15
16
- id : mypy
16
17
name : mypy-ml-agents
17
18
files : " ml-agents/.*"
18
- args : [--ignore-missing-imports, --disallow-incomplete-defs]
19
+ args : [--ignore-missing-imports, --disallow-incomplete-defs, --no-strict-optional]
20
+ additional_dependencies : [types-PyYAML, types-attrs, types-protobuf, types-setuptools]
19
21
- id : mypy
20
22
name : mypy-ml-agents-envs
21
23
files : " ml-agents-envs/.*"
22
24
# Exclude protobuf files and don't follow them when imported
23
25
exclude : " .*_pb2.py"
24
- args : [--ignore-missing-imports, --disallow-incomplete-defs]
25
-
26
+ args : [--ignore-missing-imports, --disallow-incomplete-defs, --no-strict-optional ]
27
+ additional_dependencies : [types-PyYAML, types-attrs, types-protobuf, types-setuptools]
26
28
- repo : https://gitlab.com/pycqa/flake8
27
- rev : 3.8.1
29
+ rev : 3.9.2
28
30
hooks :
29
31
- id : flake8
30
32
exclude : >
36
38
additional_dependencies : [flake8-comprehensions==3.2.2, flake8-tidy-imports==4.1.0, flake8-bugbear==20.1.4]
37
39
38
40
- repo : https://github.com/asottile/pyupgrade
39
- rev : v2.7 .0
41
+ rev : v2.31 .0
40
42
hooks :
41
43
- id : pyupgrade
42
44
args : [--py3-plus, --py36-plus]
47
49
)$
48
50
49
51
- repo : https://github.com/pre-commit/pre-commit-hooks
50
- rev : v2.5 .0
52
+ rev : v4.1 .0
51
53
hooks :
52
54
- id : mixed-line-ending
53
55
exclude : >
@@ -68,12 +70,12 @@ repos:
68
70
exclude : \.yamato/.*
69
71
70
72
- repo : https://github.com/pre-commit/pygrep-hooks
71
- rev : v1.4.2
73
+ rev : v1.9.0
72
74
hooks :
73
75
- id : python-check-mock-methods
74
76
75
77
- repo : https://github.com/mattlqx/pre-commit-search-and-replace
76
- rev : v1.0.3
78
+ rev : v1.0.5
77
79
hooks :
78
80
- id : search-and-replace
79
81
types : [markdown]
0 commit comments