git commit 执行代码检查时候一直报错:
也查不到是什么原因。
重新看
pre-commit-config.yaml 里面关于yapf 的配置
exclude: (stl_viewer/lib/QVTKRenderWindowInteractor.py)
repos:
- repo: local
hooks:
- id: flake8
name: flake8
language: system
entry: flake8
args: [--config, ./.flake8]
types: [python]
- id: isort
name: isort
language: system
entry: isort
args: [-rc]
types: [python]
- id: yapf
name: yapf
language: system
entry: yapf
args: [-i, -p, -r, .]
types: [python]
发现yapf的配置中 args里面多了一个 . 但是前面已经有r 了 这样可能导致死循环 删除这个. 再重新提交,问题解决