Skip to content

Commit 9f4a362

Browse files
authored
Add pre-commit for validating rst files. (#312)
1 parent 44f42ca commit 9f4a362

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ repos:
2020
- id: ruff
2121
args: [--fix, --exit-non-zero-on-fix]
2222
- id: ruff-format
23+
- repo: https://github.com/rstcheck/rstcheck
24+
rev: v6.2.5
25+
hooks:
26+
- id: rstcheck

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
===============
1+
================
22
mocket /ˈmɔ.kɛt/
3-
===============
3+
================
44

55
.. image:: https://github.com/mindflayer/python-mocket/actions/workflows/main.yml/badge.svg?branch=main
66
:target: https://github.com/mindflayer/python-mocket/actions?query=workflow%3A%22Mocket%27s+CI%22

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66
requires-python = ">=3.8"
77
name = "mocket"
88
description = "Socket Mock Framework - for all kinds of socket animals, web-clients included - with gevent/asyncio/SSL support"
9-
readme = { file = "README.rst", content-type = "text/x-rst" }
9+
readme = "README.rst"
1010
license = { file = "LICENSE" }
1111
authors = [{ name = "Giorgio Salluzzo", email = "[email protected]" }]
1212
classifiers = [

0 commit comments

Comments
 (0)