Thank you for improving glpi-python-client.
python -m venv .venv
.venv\Scripts\activate
python -m pip install -e .[dev]
python -m pytestRun the focused checks before opening a pull request:
python -m pytest
python -m ruff check .
python -m mypy glpi_python_clientTo build the documentation locally:
python -m sphinx -W --keep-going -b html docs docs/_build/html pa.github/workflows/ci.ymlruns tests for Python 3.10 through 3.13 on pull requests and pushes tomain.- The same workflow runs
ruff,mypy, and a warning-free Sphinx build on Python 3.12. - When
READTHEDOCS_TOKENandREADTHEDOCS_PROJECTare configured as GitHub secrets, pushes tomainalso trigger the Read the Docslatestbuild. .github/workflows/release.ymlrepeats the checks for published releases, builds the distribution artifacts, and triggers the configured release docs build on Read the Docs.
- Keep API calls behind
GlpiClientmethods. - Prefer field-validated Pydantic models for request and response payloads.
- Avoid organization-specific category, entity, or profile defaults in the library core.
- Add tests for payload serialization and response normalization when adding endpoints.