Cookiecutter template for Python projects in Visual Studio Code.
- Linting: flake8
- Formatting: black
- Testing: pytest
- Code coverage: coverage
- Types annotations: pyannotate
- Type checker: mypy
- Imports sorting: isort
- Unused imports removal: autoflake
- pre-commit
- Settings and some useful extensions for vscode
- Virtual environment: venv
- Dockerfile (python:X.X-alpine image)
- Python package (setup.py and conda)
Install cookiecutter:
pip install -U cookiecutter
Generate the project template:
cookiecutter gh:apeirosb/cookiecutter-python-vscode
Alternatively, if this repo has been cloned locally:
cookiecutter <path>/cookiecutter-python-vscode
In both cases, the Python project will be generated in the current directory.
- .gitignore taken from https://github.com/github/gitignore (Python.gitignore)