Skip to content

investigate pre-commit failure #231

@chrishavlin

Description

@chrishavlin

#230 shows a failure when pre-commit actually runs

flake8...................................................................Failed
- hook id: flake8
- exit code: 1

/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/logging_format/whitelist.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  from pkg_resources import iter_entry_points
/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/logging_format/whitelist.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  from pkg_resources import iter_entry_points
/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/logging_format/whitelist.py:5: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  from pkg_resources import iter_entry_points
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/lib/python3.14/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
                    ~~~~^^^^^^^^^^^^^^^
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/flake8/checker.py", line 82, in _mp_run
    ).run_checks()
      ~~~~~~~~~~^^
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/flake8/checker.py", line 526, in run_checks
    self.run_ast_checks()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/flake8/checker.py", line 428, in run_ast_checks
    for line_number, offset, text, _ in runner:
                                        ^^^^^^
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/bugbear.py", line 60, in run
    visitor.visit(self.tree)
    ~~~~~~~~~~~~~^^^^^^^^^^^
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/bugbear.py", line 268, in visit
    super().visit(node)
    ~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/ast.py", line 506, in visit
    return visitor(node)
  File "/usr/lib/python3.14/ast.py", line 514, in generic_visit
    self.visit(item)
    ~~~~~~~~~~^^^^^^
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/bugbear.py", line 268, in visit
    super().visit(node)
    ~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/ast.py", line 506, in visit
    return visitor(node)
  File "/usr/lib/python3.14/ast.py", line 514, in generic_visit
    self.visit(item)
    ~~~~~~~~~~^^^^^^
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/bugbear.py", line 268, in visit
    super().visit(node)
    ~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/ast.py", line 506, in visit
    return visitor(node)
  File "/usr/lib/python3.14/ast.py", line 514, in generic_visit
    self.visit(item)
    ~~~~~~~~~~^^^^^^
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/bugbear.py", line 268, in visit
    super().visit(node)
    ~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/ast.py", line 506, in visit
    return visitor(node)
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/bugbear.py", line 430, in visit_Raise
    self.check_for_b016(node)
    ~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/lib/python3.14/site-packages/bugbear.py", line 502, in check_for_b016
    if isinstance(node.exc, (ast.NameConstant, ast.Num, ast.Str)):
                             ^^^^^^^^^^^^^^^^
AttributeError: module 'ast' has no attribute 'NameConstant'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/pc/clone/HLL-qp_AT1WYEYfKdMaDeA/py_env-python3.14/bin/flake8", line 7, in <module>
    sys.exit(main())

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions