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

Codespell pre-commit hooks totally failing following the release of setuptools-scm==8.0.0 #3088

Closed
andrewmwilson opened this issue Sep 20, 2023 · 3 comments

Comments

@andrewmwilson
Copy link

andrewmwilson commented Sep 20, 2023

Following the release of setuptools-scm==8.0.0 around an hour ago, I believe all newly-installed codespell pre-commit hooks are failing with the following error.

  File "/Users/a/.cache/pre-commit/repoczrniamn/py_env-python3.11/bin/codespell", line 5, in <module>
    from codespell_lib import _script_main
  File "/Users/a/.cache/pre-commit/repoczrniamn/py_env-python3.11/lib/python3.11/site-packages/codespell_lib/__init__.py", line 1, in <module>
    from ._codespell import _script_main, main
  File "/Users/a/.cache/pre-commit/repoczrniamn/py_env-python3.11/lib/python3.11/site-packages/codespell_lib/_codespell.py", line 29, in <module>
    from ._version import __version__ as VERSION  # noqa: N812
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/a/.cache/pre-commit/repoczrniamn/py_env-python3.11/lib/python3.11/site-packages/codespell_lib/_version.py", line 4
    __version__ : str = version : str = '0.1.dev1+g355e50e'
                                ^
SyntaxError: invalid syntax
@andrewmwilson
Copy link
Author

Looks like this is an issue with setuptools-scm, so codespell might not have to do much other than wait for a fix.

pypa/setuptools-scm#905
pypa/setuptools-scm#906

@andrewmwilson
Copy link
Author

Looks like this has been resolved upstream.

@tomrijntjes
Copy link
Contributor

Not so. Opened a PR to fix the immediate issue: #3100

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

No branches or pull requests

2 participants