pre-commit에 flake8 적용 시 could not read username 에러

python 프로젝트에 pre-commit으로 flake8을 적용하려는데 아래와 같은 오류가 나왔다.

pre-commit fatal: could not read username for 'https://gitlab.com/pycqa/flake8.git': terminal prompts disabled

gitlab.com의 repo 문제였고 아래와 같이 수정해서 해결했다.

.pre-commit-config.yaml

-   repo: https://github.com/pycqa/flake8
    rev: 6.0.0
    hooks:
    - id: flake8

참고

Leave a Reply