Skip to content

Commit

Permalink
feat: gitignore (#673)
Browse files Browse the repository at this point in the history
* feat: add gitignore

* fix: update black script to work on pr wo py files
  • Loading branch information
samsja authored Apr 6, 2022
1 parent e2b2ae8 commit ffc4bdc
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 1 deletion.
153 changes: 153 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Initially taken from Github's Python gitignore file

# 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/
.nox/
.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/
docs/api/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
docs/.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
.idea/
toy*.py
.DS_Store
post/
toy*.ipynb
data/
*.c
.nes_cache
toy*.yml
*.tmp

shell/jina-wizard.sh
/junit/
/tests/junit/
/docs/chapters/proto/docs.md
/tests/.pytest-kind

# IntelliJ IDEA
*.iml
.idea

# VSCode
.vscode

# test with config in resources
tests/integration/crud/simple/simple_indexer/

# latency tracking
latency
MyIndexer/
MyMemMap/
original/
output/

# kubernetes testing
.pytest-kind
.kube
4 changes: 3 additions & 1 deletion scripts/black.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ for changed_file in $CHANGED_FILES; do
arrVar+=(${changed_file})
fi
done
black -S --check "${arrVar[@]}"
if [ ${#arrVar[@]} -ne 0 ]; then
black -S --check "${arrVar[@]}"
fi

0 comments on commit ffc4bdc

Please sign in to comment.