You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```bash# Clone the repositorygit clone git@github.com:MrBlenny/py-d2.git &&cd py-d2# Install all dependenciespoetry install --sync --all-extras --with dev,test,coverage# install git hook scripts for developmentpre-commit install# Install dependencies with group 'dev'、'test' for developmentpoetry install --with dev,test# Only install required dependencies for productionpoetry install
Usage
There are some useful commands for development:
# Run the example
poetry run example
# Debug with ipdb3
poetry run ipdb3 ./src/py_d2/main.py
# Code test
poetry run pytest -s
# Run default coverage test
poetry run tox
# Run example project coverage test at python 3.9 and 3.10
poetry run tox -e py{39,310}-py-d2
# Lint with black
poetry run black ./src --check
# Format code with black
poetry run black ./src
# Check with mypy
poetry run mypy ./src
# Check import order with isort
poetry run isort ./src --check
# Lint with flake8
poetry run flake8 ./src
About
A fully typed python interface for building .d2 graph files for use with the D2 engine.