Development Guide¶
This guide covers common development tasks for the networkx-mermaid project.
Setup¶
Install the project with development dependencies:
Running Tests¶
Run tests using pytest:
Run tests with coverage:
Run tests in parallel:
Run tests including README examples:
Linting¶
This project uses ruff for linting and code formatting.
Check for linting issues:
Fix auto-fixable linting issues:
Format code:
Type Checking¶
This project uses mypy for static type checking.
Run type checking:
Documentation¶
Documentation is built using zensical, an Open Source documentation system built by the creators of Material for MkDocs.
Serve documentation locally:
Build documentation:
The documentation will be built to the site/ directory.
Configuration is managed in zensical.toml.
Development Workflow¶
- Create a new branch for your feature or bugfix
- Make your changes
- Run linting:
ruff check . && ruff format . - Run type checking:
mypy src - Run tests:
pytest tests --cov=src - Commit your changes
- Push and create a pull request