Skip to content

Code Style Guide

Coding standards for LangCalc.

Python Style

  • Follow PEP 8
  • Use Black for formatting
  • Use flake8 for linting
  • Use mypy for type checking

Documentation

  • Write clear docstrings
  • Include examples in docstrings
  • Document parameters and return values
  • Add type hints

Testing

  • Write tests for new features
  • Maintain high coverage (>80%)
  • Use descriptive test names

Tools

black src/ tests/
flake8 src/ tests/
mypy src/

This page is under construction.