Skip to content

Pre-commit hook for flake8 is inaccesible  #112

@Pascal-0x90

Description

@Pascal-0x90

🐛 Summary

Pre-commit hook here

- repo: https://gitlab.com/pycqa/flake8

Uses a GitLab link which is not accessible currently by public users. I am unsure if this is supposed to be intended or not.

To reproduce

Steps to reproduce the behavior:

  1. Clone the base skeleton-python-library (or for me I found this when cloning the findcdn tool)
  2. Attempt to run the pre-commit hooks for the first time with pre-commit run.

Expected behavior

I expected the hooks to initialize and pull from the respective repositories as required by the .pre-commit-config.yaml file.

Any helpful log output or screenshots

Here is some error output from running the command.

(findcdn) ζ pre-commit run                                                                    [7bbf50e]
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/igorshubovych/markdownlint-cli.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@2.6.1.
[INFO] Initializing environment for https://github.com/adrienverge/yamllint.
[INFO] Initializing environment for https://github.com/python-jsonschema/check-jsonschema.
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit.
[INFO] Initializing environment for https://github.com/cisagov/pre-commit-shfmt.
[INFO] Initializing environment for https://github.com/detailyang/pre-commit-shell.
[INFO] Initializing environment for https://github.com/PyCQA/bandit.
[INFO] Initializing environment for https://github.com/PyCQA/bandit.
[INFO] Initializing environment for https://github.com/psf/black.
[INFO] Initializing environment for https://gitlab.com/pycqa/flake8.
Username for 'https://gitlab.com': pascal-0x90
Password for 'https://pascal-0x90@gitlab.com':
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'fetch', 'origin', '--tags')
return code: 128
expected return code: 0
stdout: (none)
stderr:
    remote: The project you were looking for could not be found or you don't have permission to view it.
    fatal: repository 'https://gitlab.com/pycqa/flake8.git/' not found

Check the log at /home/pascal/.cache/pre-commit/pre-commit.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions