Skip to main content

The sweet way to catch outdated docstrings

Project description

Dolce

Because broken docs leave a bitter taste.

Dolce is a tool designed to streamline the process of managing and generating documentation/docstrings for your python projects.

Installation

Comming soon...

Usage

Check command

  • Check docstrings in all python files in the current directory and subdirectories
dolce check
  • Check in specific directory (recursevly) or file
dolce check path/to/file_or_directory.py
  • Check only documented code
dolce check --ignore-missing
  • Sepecify local ollama model (default is codestral)
dolce check --model <model_name>

To be implemented

  • Support config in pyproject.toml for default options
  • Support config for secret environment variables for LLM APIs
  • Use third-party tools to check docstrings style, parameters, etc.
  • Add cache system to avoid re-checking unchanged code

📦 For Developers

Make sure you have the following tools installed before working with the project:

  • uv → Python project and environment management
  • make → run common project tasks via the Makefile

Getting Started

Install dependencies into a local virtual environment:

uv sync --all-groups

This will create a .venv folder and install everything declared in pyproject.toml.

Then, you can activate the environment manually depending on your shell/OS:

  • Linux / macOS (bash/zsh):

    source .venv/bin/activate
    
  • Windows (PowerShell):

    .venv\Scripts\Activate.ps1
    
  • Windows (cmd.exe):

    .venv\Scripts\activate.bat
    

Set up your environment variables

Make a copy of the .env.example file and edit it with your settings:

cp .env.example .env

Run dolce

make run

Linting, Formatting, and Type Checking

make qa

Runs Ruff for linting and formatting, and Mypy for type checking.

Running Unit Tests

Before running tests, override any required environment variables in the .env.test file.

make test

Executes the test suite using Pytest.

Building the Project

make build

Generates a distribution package inside the dist/ directory.

Cleaning Up

make clean

Removes build artifacts, caches, and temporary files to keep your project directory clean.

Building docs

make docs

Generates the project documentation inside the dist/docs folder.

When building the project (make build) the docs will also be generated automatically and included in the distribution package.

🤝 Contributing

Contributions are welcome! Please ensure all QA checks and tests pass before opening a pull request.


🚀 Project starter provided by Cookie Pyrate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydolce-0.1.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydolce-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file pydolce-0.1.0.tar.gz.

File metadata

  • Download URL: pydolce-0.1.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for pydolce-0.1.0.tar.gz
Algorithm Hash digest
SHA256 317a6aaae53539d352ec8678895e8d47565f56f05ba02d411bb6c7ec96286053
MD5 bd54df4f4661c831f3d96bdef1ffb8f5
BLAKE2b-256 234c1c340875ef663850aa62f5af5726b329ee2b0946220adc3ad7f3991deb09

See more details on using hashes here.

File details

Details for the file pydolce-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pydolce-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for pydolce-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93d07183f11724a3b5b3e115de28c096690e3308285e39f1d0b66415d5d30ed5
MD5 5be115d5784fdb6415a6f9174c78ab0b
BLAKE2b-256 2c44ff11597538def627d4a37455c88e3e6c612ad6c0b4def81a652339d7c634

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page