Skip to content

Commit

Permalink
move templates to this direcotry
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Mrázek committed Nov 7, 2022
1 parent e738788 commit bb7fbfc
Show file tree
Hide file tree
Showing 38 changed files with 1,587 additions and 0 deletions.
133 changes: 133 additions & 0 deletions templates/blank/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# 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/
pip-wheel-metadata/
share/python-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
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# 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/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

.vscode
37 changes: 37 additions & 0 deletions templates/blank/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# blank wanna-ml-cookiecutter

cookiecutter template for wanna-ml projects

## Get started

# Install

```
pip install wanna-ml
```

# Launch to cutter
```
wanna init --template blank
```
or without wanna, manually
```
cookiecutter https://github.com/avast/wanna-blank-cookiecutter
```

# Answer the following question, values will be used to in your wanna-ml config

```
project_name [project_name]:
project_owner_fullname [project owner]:
project_owner_email [you@avast.com]:
project_version [0.0.0]:
project_description [Link to WANNA project page on CML]:
project_slug [project_name]:
gcp_project_id []:
gcp_service_account []:
gcp_bucket []:
```

# cd into your project_slug
cd project_name
13 changes: 13 additions & 0 deletions templates/blank/cookiecutter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"project_name": "project_name",
"project_owner_fullname": "project owner",
"project_owner_email": "you@avast.com",
"project_version": "0.0.0",
"project_description": "Link to MLOps project page on CML",
"project_slug": "{{cookiecutter.project_name|lower|replace('_', '-')|replace(' ', '-')}}",
"project_repo_name": "mlops/{{cookiecutter.project_slug}}",
"gcp_project_id": "your-gcp-project-id",
"gcp_service_account": "",
"gcp_artifact_registry_repository": "",
"gcp_bucket": "your-staging-bucket-name"
}
9 changes: 9 additions & 0 deletions templates/blank/{{cookiecutter.project_slug}}/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# docker-py tars the whole build directory and sends it to the docker-machine
# excluding large folders and files unrelated to docker build can save you _a lot of_ time on each build

.git
.idea
.vscode
.mypy_cache

venv/
152 changes: 152 additions & 0 deletions templates/blank/{{cookiecutter.project_slug}}/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
build/

# This file contains settings for pytest. We are using it for local development
# only. Settings for CI/CD are in setup.cfg
pytest.ini


# Byte-compiled / optimized / DLL files
__pycache__/
*.pyc
*.py[cod]
*$py.class
.mypy_cache

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
.DS_Store

# 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
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# 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/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/


tags

.vim/*
*/.vim/*
*.swp
*.swo

#VS code
.vscode

#teamcity
.teamcity/*.iml
.teamcity/target/


.idea/*
Loading

0 comments on commit bb7fbfc

Please sign in to comment.