From 3ddaccc4c0e492fc9a6c789786032b85691db641 Mon Sep 17 00:00:00 2001 From: Giorgio Salluzzo Date: Thu, 9 Oct 2025 23:52:03 +0200 Subject: [PATCH] Add pre-commit for validating `rst` files. --- .pre-commit-config.yaml | 4 ++++ README.rst | 4 ++-- pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 239f9a0..b2cd5de 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,3 +20,7 @@ repos: - id: ruff args: [--fix, --exit-non-zero-on-fix] - id: ruff-format + - repo: https://github.com/rstcheck/rstcheck + rev: v6.2.5 + hooks: + - id: rstcheck diff --git a/README.rst b/README.rst index a79cfa0..a377f3e 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,6 @@ -=============== +================ mocket /ˈmɔ.kɛt/ -=============== +================ .. image:: https://github.com/mindflayer/python-mocket/actions/workflows/main.yml/badge.svg?branch=main :target: https://github.com/mindflayer/python-mocket/actions?query=workflow%3A%22Mocket%27s+CI%22 diff --git a/pyproject.toml b/pyproject.toml index 66b429d..6849228 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" requires-python = ">=3.8" name = "mocket" description = "Socket Mock Framework - for all kinds of socket animals, web-clients included - with gevent/asyncio/SSL support" -readme = { file = "README.rst", content-type = "text/x-rst" } +readme = "README.rst" license = { file = "LICENSE" } authors = [{ name = "Giorgio Salluzzo", email = "giorgio.salluzzo@gmail.com" }] classifiers = [