Skip to content

Commit e8a2764

Browse files
JamePengJamePeng
authored andcommitted
Fix: Optimize .gitignore and add macOS system files
1 parent d69a1b5 commit e8a2764

File tree

1 file changed

+139
-108
lines changed

1 file changed

+139
-108
lines changed

.gitignore

Lines changed: 139 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,106 @@
1+
# ==========================================
2+
# Operating System & System Files
3+
# ==========================================
4+
# macOS
5+
.DS_Store
6+
.AppleDouble
7+
.LSOverride
8+
._*
9+
.DocumentRevisions-V100
10+
.fseventsd
11+
.Spotlight-V100
12+
.TemporaryItems
13+
.Trashes
14+
.VolumeIcon.icns
15+
.com.apple.timemachine.donotpresent
16+
17+
# Windows (Common)
18+
Thumbs.db
19+
ehthumbs.db
20+
Desktop.ini
21+
*.exe
22+
23+
# General User Overrides
124
*.local
225

3-
.python-version
4-
26+
# ==========================================
27+
# IDE & Editors
28+
# ==========================================
29+
# VS Code
530
.vscode/
31+
.vs/
632

7-
_skbuild/
33+
# JetBrains / PyCharm
34+
.idea/
35+
36+
# Spyder
37+
.spyderproject
38+
.spyproject
39+
40+
# Rope
41+
.ropeproject
42+
43+
# Jupyter / IPython
44+
.ipynb_checkpoints
45+
profile_default/
46+
ipython_config.py
47+
48+
# Other
49+
/nppBackup
850

51+
# ==========================================
52+
# Environment & Secrets (Critical)
53+
# ==========================================
54+
# Virtual Environments
55+
.env
56+
.venv
57+
env/
58+
venv/
59+
ENV/
60+
env.bak/
61+
venv.bak/
62+
.python-version
63+
64+
# Environment Variables managers
965
.envrc
1066
.direnv
1167

12-
models/
68+
# Secrets (Caution: check your specific needs)
69+
local_settings.py
1370

14-
# Byte-compiled / optimized / DLL files
15-
__pycache__/
16-
*.py[cod]
17-
*$py.class
71+
# ==========================================
72+
# Project Specific: Llama & Models
73+
# ==========================================
74+
# Large Model Files
75+
models/
76+
docker/open_llama/*.bin
1877

19-
# C extensions
78+
# C extensions (llama_cpp bindings)
2079
llama_cpp/*.so
2180
llama_cpp/*.dylib
2281
llama_cpp/*.metal
2382
llama_cpp/*.dll
2483
llama_cpp/*.lib
2584

26-
# Distribution / packaging
27-
.Python
85+
# Scikit-build
86+
_skbuild/
87+
88+
# ==========================================
89+
# Python Core & Compilation
90+
# ==========================================
91+
# Byte-compiled / optimized / DLL files
92+
__pycache__/
93+
*.py[cod]
94+
*$py.class
95+
96+
# C extensions (General)
97+
*.dll
98+
*.o
99+
*.so
100+
101+
# ==========================================
102+
# Build, Distribution & Packaging
103+
# ==========================================
28104
build/
29105
develop-eggs/
30106
dist/
@@ -44,15 +120,32 @@ share/python-wheels/
44120
MANIFEST
45121

46122
# PyInstaller
47-
# Usually these files are written by a python script from a template
48-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
49123
*.manifest
50124
*.spec
51125

52-
# Installer logs
53-
pip-log.txt
54-
pip-delete-this-directory.txt
126+
# PyBuilder
127+
.pybuilder/
128+
target/
129+
130+
# ==========================================
131+
# Dependency Managers
132+
# ==========================================
133+
# Pipenv
134+
# Pipfile.lock
135+
136+
# Poetry
137+
# poetry.lock
55138

139+
# PDM
140+
.pdm.toml
141+
# pdm.lock
142+
143+
# PEP 582
144+
__pypackages__/
145+
146+
# ==========================================
147+
# Testing, Coverage & Type Checking
148+
# ==========================================
56149
# Unit test / coverage reports
57150
htmlcov/
58151
.tox/
@@ -68,113 +161,51 @@ coverage.xml
68161
.pytest_cache/
69162
cover/
70163

71-
# Translations
72-
*.mo
73-
*.pot
164+
# Type Checkers (mypy, pyre, pytype)
165+
.mypy_cache/
166+
.dmypy.json
167+
dmypy.json
168+
.pyre/
169+
.pytype/
74170

75-
# Django stuff:
171+
# Cython debug symbols
172+
cython_debug/
173+
174+
# ==========================================
175+
# Web Frameworks & Databases
176+
# ==========================================
177+
# Django
76178
*.log
77-
local_settings.py
78179
db.sqlite3
79180
db.sqlite3-journal
80181

81-
# Flask stuff:
182+
# Flask
82183
instance/
83184
.webassets-cache
84185

85-
# Scrapy stuff:
186+
# Scrapy
86187
.scrapy
87188

88-
# Sphinx documentation
89-
docs/_build/
90-
91-
# PyBuilder
92-
.pybuilder/
93-
target/
94-
95-
# Jupyter Notebook
96-
.ipynb_checkpoints
97-
98-
# IPython
99-
profile_default/
100-
ipython_config.py
101-
102-
# pyenv
103-
# For a library or package, you might want to ignore these files since the code is
104-
# intended to run in multiple environments; otherwise, check them in:
105-
# .python-version
106-
107-
# pipenv
108-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
109-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
110-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
111-
# install all needed dependencies.
112-
#Pipfile.lock
113-
114-
# poetry
115-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
116-
# This is especially recommended for binary packages to ensure reproducibility, and is more
117-
# commonly ignored for libraries.
118-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
119-
#poetry.lock
120-
121-
# pdm
122-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
123-
#pdm.lock
124-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
125-
# in version control.
126-
# https://pdm.fming.dev/#use-with-ide
127-
.pdm.toml
128-
129-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130-
__pypackages__/
131-
132-
# Celery stuff
189+
# Celery
133190
celerybeat-schedule
134191
celerybeat.pid
135192

136-
# SageMath parsed files
137-
*.sage.py
138-
139-
# Environments
140-
.env
141-
.venv
142-
env/
143-
venv/
144-
ENV/
145-
env.bak/
146-
venv.bak/
147-
148-
# Spyder project settings
149-
.spyderproject
150-
.spyproject
151-
152-
# Rope project settings
153-
.ropeproject
193+
# ==========================================
194+
# Documentation & Translations
195+
# ==========================================
196+
# Sphinx
197+
docs/_build/
154198

155-
# mkdocs documentation
199+
# MkDocs
156200
/site
157201

158-
# mypy
159-
.mypy_cache/
160-
.dmypy.json
161-
dmypy.json
162-
163-
# Pyre type checker
164-
.pyre/
165-
166-
# pytype static type analyzer
167-
.pytype/
168-
169-
# Cython debug symbols
170-
cython_debug/
202+
# Translations
203+
*.mo
204+
*.pot
171205

172-
# PyCharm
173-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
174-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
175-
# and can be added to the global gitignore or merged into this file. For a more nuclear
176-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
177-
.idea/
206+
# SageMath
207+
*.sage.py
178208

179-
# downloaded model .bin files
180-
docker/open_llama/*.bin
209+
# Installer logs
210+
pip-log.txt
211+
pip-delete-this-directory.txt

0 commit comments

Comments
 (0)