A library to hold code shared by EPS and Spine
Project description
eps-spine-shared
A library to hold code shared by EPS and Spine.
Overview
This library provides shared functionality and utilities used across EPS (Electronic Prescription Service) and Spine systems.
Development
It is recommended that you use VS Code and a devcontainer as this will install all necessary components and correct versions of tools and languages. See https://code.visualstudio.com/docs/devcontainers/containers for details on how to set this up on your host machine.
All commits must be made using signed commits
Once the steps at the link above have been completed. Add to your ~/.gnupg/gpg.conf as below:
use-agent
pinentry-mode loopback
and to your ~/.gnupg/gpg-agent.conf as below:
allow-loopback-pinentry
As described here: https://stackoverflow.com/a/59170001
You will need to create the files, if they do not already exist. This will ensure that your VSCode bash terminal prompts you for your GPG key password.
You can cache the gpg key passphrase by following instructions at https://superuser.com/questions/624343/keep-gnupg-credentials-cached-for-entire-user-session
Pre-commit Hooks
Some pre-commit hooks are installed as part of the install above, to run basic lint checks and ensure you can't accidentally commit invalid changes. The pre-commit hook uses python package pre-commit and is configured in the file .pre-commit-config.yaml. A combination of these checks are also run in CI.
Code Quality
This project uses Flake8 for linting and Black for code formatting.
Run linting:
make lint
Format code:
make format
Project Structure
eps-spine-shared/
├── src/
│ └── eps_spine_shared/ # Main library code
├── tests/ # Test files
├── pyproject.toml # Project configuration
├── Makefile # Build automation
└── README.md # This file
Contributing
Contributions to this project are welcome from anyone, providing that they conform to the guidelines for contribution and the community code of conduct.
Licensing
This code is dual licensed under the MIT license and the OGL (Open Government License). Any new work added to this repository must conform to the conditions of these licenses. In particular this means that this project may not depend on GPL-licensed or AGPL-licensed libraries, as these would violate the terms of those libraries' licenses.
The contents of this repository are protected by Crown Copyright (C).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters