add pixi configure in python gitignore #4471
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reasons for making this change:
pixi is a package manager.
I want to append pixi support for this project.
This appendix is almost same as previous ones, pyenv, pipenv(#2977) pdm(##3976), poetry(#3853).
This change include two type of changes for pixi's support.
First one is for
pixi.lock
. It just follows precedent cases(pipenv, poetry, pdm).I don't think there is any problem to append this line.
Second one is for
.pixi
.pixi
create.pixi
directory, just like Python's venv module creates one in the.venv
directory..pixi
is a directory for setting up virtualenv.It is recommended not to include this directory in version control in pixi system.
Why
.pixi
is needed in gitignore.When initialize pixi project (by running
pixi init
command), pixi automatically add the line of.pixi
to.gitignore
file. (If already exist.pixi
in user's .gitignore file, pixi doesn't change anything.)But user may use this project's template after initialized pixi.
This change doesn't cause any breaking change. Appending
.pixi
in this project's template is reasonable.Links to documentation supporting these rule changes:
https://prefix.dev/docs/pixi/cli#init
Link to application or project’s homepage: https://pixi.sh/latest/