docs: module template docstrings

This commit is contained in:
Chris Milne 2026-05-28 15:41:10 +01:00
parent b3085e85fd
commit 01c49ca34c
9 changed files with 27 additions and 49 deletions

View file

@ -1,7 +1,5 @@
"""
Configurations for <this module>
Configurations for the <this> module
Configurations:
- List: Description
- Configs: Description
Exports:
"""

View file

@ -1,7 +1,5 @@
"""
Constants and error codes for <this module>
Constants for the <this> module
Constants:
- List: Description
- Consts: Description
Exports:
"""

View file

@ -1,11 +1,6 @@
"""
Router dependencies for <this module>
Dependencies related to the <this> module
Classes:
- List: Description
- Classes: Description
Functions:
- List: Description
- Functions: Description
Exports:
- <dep_name>: <return_type>: <description>
"""

View file

@ -1,7 +1,6 @@
"""
Module specific exceptions for <this module>
Exceptions related to the <this> modules
Exceptions:
- List: Description
- Exceptions: Description
- <ExceptionName>: Details e.g. optional params
"""

View file

@ -1,7 +1,9 @@
"""
Database models for <this module>
Database models for the <this> module
Models:
- List: Description
- Models: Description
- <ModelName>:
- <normal_columns[FK][PK]>
- <orm_relationships>
- <calculated_properties>
"""

View file

@ -1,13 +1,12 @@
"""
Router endpoints for <this module>
Router endpoints for the <this> module
Endpoints:
- List: Description
- Endpoints: Description
Exports:
- router: fastapi.APIRouter
"""
from fastapi import APIRouter
_router = APIRouter(
router = APIRouter(
tags=[""],
)
)

View file

@ -1,7 +1,8 @@
"""
Pydantic models for <this module>
Pydantic models for the <this> module
Models:
- List: Description
- Models: Description
Models follow the nomenclature of:
- Sub-models: "<Resource><Opt:>Schema"
- Mixins: "<Attribute>Mixin"
- Models: "<Module><Method><Resource><Opt:Resource><Direction>" ie ""
"""

View file

@ -1,11 +1,5 @@
"""
Module specific business logic for <this module>
Module specific business logic for the <this> module
Classes:
- List: Description
- Classes: Description
Functions:
- List: Description
- Functions: Description
Exports:
"""

View file

@ -1,11 +1,3 @@
"""
Non-business logic reusable functions and classes for <this module>
Classes:
- List: Description
- Classes: Description
Functions:
- List: Description
- Functions: Description
Non-business logic reusable functions and classes for the <this> module
"""