Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError running check-shebang-scripts-are-executable #602

Closed
Person-93 opened this issue May 16, 2021 · 1 comment · Fixed by #603
Closed

ImportError running check-shebang-scripts-are-executable #602

Person-93 opened this issue May 16, 2021 · 1 comment · Fixed by #603

Comments

@Person-93
Copy link

This commit hook always fails with an import error.

Check that scripts with shebangs are executable...............................Failed
- hook id: check-shebang-scripts-are-executable
- exit code: 1
Traceback (most recent call last):
  File "/home/mtepfer/.cache/pre-commit/reponp0slfro/py_env-python3/bin/check-shebang-scripts-are-executable", line 5, in <module>
    from pre_commit_hooks.check_executables_have_shebangs import main_reverse
ImportError: cannot import name 'main_reverse' from 'pre_commit_hooks.check_executables_have_shebangs' (/home/mtepfer/.cache/pre-commit/reponp0slfro/py_env-python3/lib/python3.7/site-packages/pre_commit_hooks/check_executables_have_shebangs.py)

@Person-93 Person-93 changed the title ImportError running check-executables-have-shebangs ImportError running check-shebang-scripts-are-executable May 16, 2021
@asottile
Copy link
Member

@scop ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants