Skip to content

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

@andrewmwilson

Description

@andrewmwilson

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

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