Polymath Code Standard [cmake]...........................................Failed
- hook id: polymath-cmake
- exit code: 1
Traceback (most recent call last):
File "/home/tim/.cache/pre-commit/noble/repoha3dzytc/py_env-python3/bin/polymath_code_standard", line 3, in <module>
from polymath_code_standard.runner import main
File "/home/tim/.cache/pre-commit/noble/repoha3dzytc/py_env-python3/lib/python3.12/site-packages/polymath_code_standard/runner.py", line 20, in <module>
importlib.import_module(f'.checkers.{_mod.name}', package=__package__)
File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tim/.cache/pre-commit/noble/repoha3dzytc/py_env-python3/lib/python3.12/site-packages/polymath_code_standard/checkers/xml.py", line 6, in <module>
from lxml import etree
ImportError: cannot import name 'etree' from 'lxml' (/home/tim/repos/robot/.pixi/envs/default/lib/python3.14/site-packages/lxml/__init__.py)
lxml or etree might not be specified as dependencies of [toml] and [cmake]?
I see it in the pyproject.toml but no in pre-commit-hooks.yaml