I recently updated a version-15 branch for enet to use test_utils in .pre-commit-config.yaml and poetry in pyproject.toml. When I commit, I get a python dependency error that appears to be a parsing issue in get_versions in validate_python_dependencies.py. Both enet and frappe require requests ~= 2.32.0, but they're written slightly differently in the dependency sections:
pre-commit error (note that enet's version is blank):
validate_python_dependencies.............................................Failed
- hook id: validate_python_dependencies
- exit code: 1
Version mismatch for requests in:
frappe: ~2.32.0
enet:
Not sure how deep we want to go into matching versions since some of the syntax options represent an acceptable range (this SO answer explains the differences).
I recently updated a
version-15
branch for enet to usetest_utils
in.pre-commit-config.yaml
and poetry inpyproject.toml
. When I commit, I get a python dependency error that appears to be a parsing issue inget_versions
invalidate_python_dependencies.py
. Both enet and frappe requirerequests ~= 2.32.0
, but they're written slightly differently in the dependency sections:pre-commit error (note that enet's version is blank):
Not sure how deep we want to go into matching versions since some of the syntax options represent an acceptable range (this SO answer explains the differences).