Provides mix-in classes for (de)serialization of JSON. JSON mix-in -> Jixin.
For now, see tests for examples of usage.
TL;DR
python -m virtualenv venv --python=python3
source venv/bin/activate
pip install -e .[dev]
pre-commit install
pre-commit run --all-files
coverage run --source=jixin -m pytest && coverage report -m
Install using pip including development extras
pip install -e .[dev]
Enable pre-commit hooks with:
pre-commit install
Run pre-commit hooks without committing:
pre-commit run --all-files
Note pre-commit is configured to use:
- seed-isort-config to better categorise third party imports
- isort to sort imports
- black to format code
Freeze dependencies with:
pip-compile
Run tests with:
pytest
Test coverage with:
coverage run --source=jixin -m pytest
coverage report -m
Type checking with:
mypy .
See dependencies with:
pipdeptree
Global git ignores per https://help.github.com/en/github/using-git/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer
For release, see https://packaging.python.org/tutorials/packaging-projects/