Skip to content

Centre for Net Zero's template for Python projects.

License

Notifications You must be signed in to change notification settings

centrefornetzero/python-template

Repository files navigation

python-template

Centre for Net Zero's template for Python projects.

Tools:

There are two Github Actions workflows:

Secrets configuration

If you want to use the Docker workflow, you need to set the following secrets:

  • GCP_ARTIFACT_REGISTRY, e.g. LOCATION-docker.pkg.dev/PROJECT-ID
  • GCP_ARTIFACT_REGISTRY_SA_KEY, the key for a service account with the roles to push and pull images.

Python Setup

You need to set up your Python environment first.

  1. Clone this repo.
  2. Run make setup in your terminal.

In step 2 this will:

  • Run pipenv sync --dev to install dependencies.
  • cp .env.template .env to create your local .env file - make sure you fill in any blanks.
  • Install your local pre-commit environment which will be used to maintain code standards
  • Check the tests work by running pipenv run pytest

About

Centre for Net Zero's template for Python projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •