Hacking on CacheControl

CacheControl is a pure Python library. We use uv to manage its development.

Linting and Formatting

We use Ruff and mypy for linting/formatting and type checking. You can run them with:

$ make lint
$ make format

Tests

The tests are all in cachecontrol/tests and are runnable by py.test.

You can use make test to run the tests:

$ make test

Documentation

The documentation is built with Sphinx. You can build it by running make doc:

$ make doc