When I install flake8-encodings into my poetry project, the poetry-lock pre-commit hook will add domdf-python-tools as a dependency in the poetry.lock lockfile.
The problem appears at the next hook when fix-spaces is run and it detects some utf-8 "EN SPACE" (U+2002) characters in the project description and replaces them with standard ascii space (U+0020) characters.
This prevents pre-commit from passing because on the next commit attempt, poetry-lock will detect changes in the lockfile and re-create the lockfile from pypi metadata and bringing back the utf-8 space characters.
Steps to Reproduce
Install domdf-python-tools into a poetry project so the package description appears in poetry.lock.
Description
I am attempting to install
flake8-encodings
in a poetry project.My project also uses the following pre-commit hooks:
When I install
flake8-encodings
into my poetry project, thepoetry-lock
pre-commit hook will adddomdf-python-tools
as a dependency in thepoetry.lock
lockfile. The problem appears at the next hook whenfix-spaces
is run and it detects some utf-8 "EN SPACE" (U+2002) characters in the project description and replaces them with standard ascii space (U+0020) characters.This prevents pre-commit from passing because on the next commit attempt,
poetry-lock
will detect changes in the lockfile and re-create the lockfile from pypi metadata and bringing back the utf-8 space characters.Steps to Reproduce
domdf-python-tools
into a poetry project so the package description appears inpoetry.lock
.poetry.lock
withgit diff
.Actual result:
I copied the description string into a test script to check each character code:
Expected result:
Reproduces how often:
Every time installed
Version
Installation source
poetry/pypi