Context
The .gitignore file only lists venv/, .vscode/, and .idea/. It is missing many common Python entries like __pycache__/, *.pyc, .env, *.egg-info/, dist/, build/, and .pytest_cache/. This means generated files could accidentally be committed to the repository.
Steps to reproduce
- Open
.gitignore.
- Notice it only contains:
- Run the tests:
pytest tests/ -- this creates __pycache__/ and .pytest_cache/ directories.
- Run
git status -- these generated directories show up as untracked files.
Expected behavior
The .gitignore should include standard Python ignores so that generated files do not appear in git status.
Actual behavior
Only 3 entries are present. Common Python artifacts are not ignored.
Files
Acceptance criteria
Suggested approach
- Open
.gitignore.
- Add the missing entries. A good minimal Python
.gitignore includes:
__pycache__/
*.pyc
*.pyo
.env
.pytest_cache/
*.egg-info/
dist/
build/
- Run
git status to verify the generated directories are now ignored.
Context
The
.gitignorefile only listsvenv/,.vscode/, and.idea/. It is missing many common Python entries like__pycache__/,*.pyc,.env,*.egg-info/,dist/,build/, and.pytest_cache/. This means generated files could accidentally be committed to the repository.Steps to reproduce
.gitignore.pytest tests/-- this creates__pycache__/and.pytest_cache/directories.git status-- these generated directories show up as untracked files.Expected behavior
The
.gitignoreshould include standard Python ignores so that generated files do not appear ingit status.Actual behavior
Only 3 entries are present. Common Python artifacts are not ignored.
Files
.gitignoreAcceptance criteria
.gitignoreincludes at least:__pycache__/,*.pyc,.env,.pytest_cache/,*.egg-info/pytestand thengit statusdoes not show generated filesvenv/,.vscode/,.idea/) are preservedSuggested approach
.gitignore..gitignoreincludes:git statusto verify the generated directories are now ignored.