File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 1
1
exclude : ^.github/actions/assigner/dist
2
2
repos :
3
3
- repo : https://github.com/pre-commit/pre-commit-hooks
4
- rev : v2.3 .0
4
+ rev : v4.4 .0
5
5
hooks :
6
6
- id : check-yaml
7
7
- id : trailing-whitespace
@@ -14,17 +14,17 @@ repos:
14
14
args :
15
15
- --fix=lf
16
16
- repo : https://github.com/psf/black
17
- rev : 22.6 .0
17
+ rev : 23.7 .0
18
18
hooks :
19
19
- id : black
20
20
exclude : ^examples/custom_converters/elu_converter/setup.py
21
21
- repo : https://github.com/pre-commit/mirrors-clang-format
22
- rev : v14 .0.6
22
+ rev : v16 .0.6
23
23
hooks :
24
24
- id : clang-format
25
25
types_or : [c++, c, cuda]
26
26
- repo : https://github.com/keith/pre-commit-buildifier
27
- rev : 5 .1.0
27
+ rev : 6 .1.0.2
28
28
hooks :
29
29
- id : buildifier
30
30
args :
@@ -34,6 +34,10 @@ repos:
34
34
rev : v0.13
35
35
hooks :
36
36
- id : validate-pyproject
37
+ - repo : https://github.com/pre-commit/mirrors-mypy
38
+ rev : ' v1.4.1'
39
+ hooks :
40
+ - id : mypy
37
41
- repo : local
38
42
hooks :
39
43
- id : dont-commit-upstream
Original file line number Diff line number Diff line change @@ -69,9 +69,20 @@ elu_converter/setup.py
69
69
"""
70
70
71
71
[tool .mypy ]
72
+ strict = true
73
+ ignore_missing_imports = true
72
74
show_error_codes = true
73
75
disable_error_code = " attr-defined"
74
76
no_implicit_optional = true
77
+ exclude = [
78
+ " py/torch_tensorrt/fx/" ,
79
+ " torch_tensorrt/fx/" ,
80
+ " py/torch_tensorrt/_C.so" ,
81
+ " examples/" ,
82
+ " docs/" ,
83
+ " docsrc/" ,
84
+ " tests/" ,
85
+ ]
75
86
76
87
[tool .setuptools ]
77
88
package-dir = {"" = " py" }
You can’t perform that action at this time.
0 commit comments