Add .gitignore file
Neutree opened this issue · 6 comments
Maybe it's better to add a .gitignore file to ignore python build files such as *.pyc
, when I use this repo as submodule(here), it always come up with some "changes"
Might be nice. Wonder what other files should go in there. Just irks me a little bit is that it adds another file to the top level.
I've always run Git with git config status.showUntrackedFiles no
, so I often forget that that message exists. Configuring that for the submodule might be another option, though I don't know if it can be done in a persistent way, from the main repo.
@Neutree
I'll just put it in a .gitignore
file. Think I take the minimalism thing a bit far sometimes...
Added a .gitignore
that just ignores *.pyc
. Tell me if you run into any other generated files that ought to be ignored.
seems just pyc is enough for your repo.
and all the build files from python as bellow:
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
Yeah, was looking at https://github.com/github/gitignore/blob/master/Python.gitignore for inspiration, but I think most of those might be a bit overkill or not apply for this project.
I added some distribution-related files now too.