Skip to content

Commit 3d81337

Browse files
smoparthclaude
authored andcommitted
chore(gitignore): use GitHub Python template as base
Replace the minimal .gitignore with GitHub's official Python .gitignore template and append fromager's project-specific patterns in a clearly labeled section. This improves coverage from ~5 to all 12+ recommended language-specific patterns, adding protection for compiled bytecode, C extensions, editor files, environment files, and many Python tooling artifacts. Closes: #966 Co-Authored-By: Claude <claude@anthropic.com> Signed-off-by: smoparth <smoparth@redhat.com>
1 parent 0a941fd commit 3d81337

1 file changed

Lines changed: 232 additions & 15 deletions

File tree

.gitignore

Lines changed: 232 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,243 @@
1+
# Byte-compiled / optimized / DLL files
12
__pycache__/
2-
.*.log
3+
*.py[codz]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py.cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
# Pipfile.lock
96+
97+
# UV
98+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# uv.lock
102+
103+
# poetry
104+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105+
# This is especially recommended for binary packages to ensure reproducibility, and is more
106+
# commonly ignored for libraries.
107+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108+
# poetry.lock
109+
# poetry.toml
110+
111+
# pdm
112+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115+
# pdm.lock
116+
# pdm.toml
117+
.pdm-python
118+
.pdm-build/
119+
120+
# pixi
121+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122+
# pixi.lock
123+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124+
# in the .venv directory. It is recommended not to include this directory in version control.
125+
.pixi
126+
127+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128+
__pypackages__/
129+
130+
# Celery stuff
131+
celerybeat-schedule
132+
celerybeat.pid
133+
134+
# Redis
135+
*.rdb
136+
*.aof
137+
*.pid
138+
139+
# RabbitMQ
140+
mnesia/
141+
rabbitmq/
142+
rabbitmq-data/
143+
144+
# ActiveMQ
145+
activemq-data/
146+
147+
# SageMath parsed files
148+
*.sage.py
149+
150+
# Environments
151+
.env
152+
.envrc
153+
.venv
154+
env/
155+
venv/
156+
ENV/
157+
env.bak/
158+
venv.bak/
159+
160+
# Spyder project settings
161+
.spyderproject
162+
.spyproject
163+
164+
# Rope project settings
165+
.ropeproject
166+
167+
# mkdocs documentation
168+
/site
169+
170+
# mypy
171+
.mypy_cache/
172+
.dmypy.json
173+
dmypy.json
174+
175+
# Pyre type checker
176+
.pyre/
177+
178+
# pytype static type analyzer
179+
.pytype/
180+
181+
# Cython debug symbols
182+
cython_debug/
183+
184+
# PyCharm
185+
.idea/
186+
187+
# Abstra
188+
.abstra/
189+
190+
# Visual Studio Code
191+
.vscode/
192+
193+
# Ruff stuff:
194+
.ruff_cache/
195+
196+
# PyPI configuration file
197+
.pypirc
198+
199+
# Marimo
200+
marimo/_static/
201+
marimo/_lsp/
202+
__marimo__/
203+
204+
# Streamlit
205+
.streamlit/secrets.toml
206+
207+
# Editor swap/temp files
208+
*.swp
209+
*.swo
210+
*~
211+
212+
# -----------------------------------------------------------
213+
# Fromager project-specific
214+
# -----------------------------------------------------------
215+
216+
# Build artifacts and working directories
3217
/sdists-repo/
4218
/wheels-repo/
5219
/work-dir*/
220+
/build-logs/
221+
/e2e-output/
222+
/artifacts
223+
/overrides/
224+
225+
# Test and virtual environments
6226
/test-venv/
7227
/venv*/
8-
/.venv/
9-
/build/
10-
**/*.egg-info/
228+
229+
# Generated version file
11230
/src/fromager/version.py
12-
/.coverage
13-
.coverage.*
14-
/artifacts
15-
/build-logs/
16-
/.pypirc
17-
.pytest_cache/
231+
232+
# Hatch build tool
18233
/.hatch/
234+
235+
# Node.js (used by some dev tooling)
19236
/node_modules/
20237
/package-lock.json
21238
/package.json
22-
/e2e-output/
23-
/dist/
239+
240+
# e2e test build outputs
24241
/e2e/flit_core_override/build
25242
/e2e/fromager_hooks/build
26243
/e2e/fromager_hooks/dist
@@ -29,11 +246,11 @@ __pycache__/
29246
/e2e/pyo3_test/dist
30247
/e2e/pyo3_test/target
31248
/e2e/pyo3_test/vendor
32-
/overrides/
33-
/docs/_build/
249+
250+
# Documentation build output
34251
/docs/example/bootstrap-output
35252

36-
/.mypy_cache/
253+
# Misc
37254
.skip-coverage
38255
.claude
39256
/.beads/

0 commit comments

Comments
 (0)