If you are noticing that poetry isn’t using the python version you specify via .python-version in your local directory you can fix your issue with the following command.

poetry config virtualenvs.prefer-active-python true