autopep8 doesn't seem to be finding config file?

隐身守侯 提交于 2019-12-09 03:44:24

I found a workaround: excluding files on a pre-commit level, rather than via autopep8.

in our .pre-commit-config.yaml file:

-   repo: https://github.com/pre-commit/mirrors-autopep8
    rev: '4b4928307f1e6e8c9e02570ef705364f47ddb6dc'  # Use the sha / tag you want to point at
    hooks:
    -   id: autopep8
        exclude: (?i)^.*gui.py

now it excludes those files properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!