compilerla / template-devcontainer Goto Github PK
View Code? Open in Web Editor NEWA template repository with a minimal VS Code devcontainer setup
Home Page: https://compilerla.github.io/template-devcontainer
License: Apache License 2.0
A template repository with a minimal VS Code devcontainer setup
Home Page: https://compilerla.github.io/template-devcontainer
License: Apache License 2.0
See workflows/deploy.yml
in cal-itp/benefits
for an example.
Create another template repository, based on this one, with a basic setup for creating a new Python package.
Running list of features to build into this template
Use flake8
for python code linting:
.flake8
.devcontainer/requirements.txt
devcontainer.json
pre-commit
hook, add to .pre-commit-config.yaml
Use black
for python code formatting:
pyproject.toml
.devcontainer/requirements.txt
devcontainer.json
pre-commit
hook, add to .pre-commit-config.yaml
Use pytest
for python testing
tests/
dir: __init__.py
, conftest.py
(empty)tests/requirements.txt
, install in devcontainer: pytest
, pytest-cov
, pytest-mock
tests/run.sh
: runs tests with coverage, (re)generates coverage reportdocs
service.github/workflows/pytest.yml
calls tests/run.sh
on every commitpackage_name/
dir: __init__.py
(empty).devcontainer/postAttach.sh
, install the local package into the devcontainersetup.py
in the root, just import and call setuptools.setup()
(with no args)setup.cfg
in the root, most configuration info about package[build-system]
entry in pyproject.toml
.gitignore
with at least:__pycache__/
.pytest_cache/
.coverage
.DS_Store
.egg-info/
build/
.vscode/settings.json
"[python]": {
"editor.defaultFormatter": "ms-python.python"
},
"python.formatting.provider": "black",
"python.languageServer": "Pylance",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.testing.pytestArgs": ["tests"],
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false
mkdocstrings
for automatic code documentation generationplaceholder
Building on #1:
Create another template repository with basic configuration for a python web application served through gunicorn
WSGI server and nginx
reverse proxy.
See https://gunicorn.org/#deployment for more.
See cal-itp/benefits for an example of this setup.
The specific web framework (Django, Flask, etc.) should be left up to the consumer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.