Add poetry.toml to Python.gitignore (optional Poetry config file) #4653
+2
−1
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
This change adds
.poetry.toml
to the Python.gitignore
file..poetry.toml
is a configuration file used by Poetry, a widely adopted dependency management and packaging tool in the Python ecosystem. While.poetry.toml
is typically used for local configuration (e.g. virtualenv location or group settings), it often contains machine-specific paths and preferences that should not be committed to version control. This makes it a good candidate for inclusion in.gitignore
.The change follows the convention already applied in the template for similar tools like Pipenv and PDM, where their lock/config files are commented out or ignored based on user/project preference.
Links to documentation supporting these rule changes
.poetry.toml
file in Poetry documentation.poetry.toml
in real-world repositoriesIf this is a new template
Not a new template; this is a change to the existing Python template.
Merge and Approval Steps