ulfalizer / Kconfiglib

A flexible Python 2/3 Kconfig implementation and library
ISC License
450 stars 161 forks source link

Add .gitignore file #74

Closed Neutree closed 5 years ago

Neutree commented 5 years ago

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" image image

ulfalizer commented 5 years ago

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 commented 5 years ago

git config status.showUntrackedFiles no is not working for vscode but good for terminal

image

Or I can just use pip to install instead of submodule~~ And it seems better So just use the way you prefer, feel free to close this issue, thanks~

ulfalizer commented 5 years ago

@Neutree I'll just put it in a .gitignore file. Think I take the minimalism thing a bit far sometimes...

ulfalizer commented 5 years ago

Added a .gitignore that just ignores *.pyc. Tell me if you run into any other generated files that ought to be ignored.

Neutree commented 5 years ago

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/
ulfalizer commented 5 years ago

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.