Skip to content

Add wildcard so that all .env files are ignored - Python.gitignore - #4393

Closed
HeyThereSmileMore wants to merge 1 commit into
github:mainfrom
HeyThereSmileMore:main
Closed

Add wildcard so that all .env files are ignored - Python.gitignore#4393
HeyThereSmileMore wants to merge 1 commit into
github:mainfrom
HeyThereSmileMore:main

Conversation

@HeyThereSmileMore

Copy link
Copy Markdown

Reasons for making this change:

So that all files starting with .env are ignored.

Example why this is useful:

With python 3.11 there is now native TOML support, so it is a valid use case to have .env.toml files.
Additionally, it would be useful if more than one ".env" file is present, like ".env_topic1" for example.

Current status
The problem with the current "gitignore" is, that these files are not ignored.

Solution
With the wildcard .env* they are ignored.

Links to documentation supporting these rule changes:
python 3.11 tomlib native support

The Dart gitignore also has the wildcard to ignore all .env* files and from my perspective it would be useful for python too

BTW: If something is missing or not correct, please let me know, this is my first pull request to this repo

@HeyThereSmileMore HeyThereSmileMore changed the title Add wildcard so that all .env files are ignored Add wildcard so that all .env files are ignored - Python.gitignore Jan 10, 2024
@github-actions

github-actions Bot commented Jun 9, 2025

Copy link
Copy Markdown

This PR is stale because there have been no updates in 90 days. It will close after 180 days of inactivity. Leave a comment if you want to keep it open 😄

@github-actions github-actions Bot added the stale label Jun 9, 2025
@github-actions

github-actions Bot commented Dec 7, 2025

Copy link
Copy Markdown

This PR has been closed because it was inactive for 180 days. If you want to continue working on it, please open a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants