git: ignore .python-version in every directory#5608
git: ignore .python-version in every directory#5608mehmetoguzderin merged 1 commit intogpuweb:mainfrom
Conversation
|
Previews, as seen when this build job started (7877cf6): |
mehmetoguzderin
left a comment
There was a problem hiding this comment.
Is .python-version commonly ignored? I think .DS_Store is good to ignore recursively however the version file is sometimes in-tree.
I accidentally added .python-version to a PR. Alan caught it. here
|
149eada to
059a939
Compare
pyenv uses the .python-version to specify the Python version to use in this directory and its descendants. This should not be checked into the repo, since it might specify a version that another person might not have.
059a939 to
7877cf6
Compare
mehmetoguzderin
left a comment
There was a problem hiding this comment.
If we want to pinpoint Python version for local env creation sometime in future maybe we can use pyproject etc. and .python-version is interpreted differently between pyenv and uv so it might be better to avoid in-tree. Thx
pyenv uses the .python-version to specify the Python version
to use in this directory and its descendants. This should
not be checked into the repo, since it might specify a version
that another person might not have.