Skip to content

Commit

Permalink
Add trailing-whitespace and rst linter checkers
Browse files Browse the repository at this point in the history
The rst-linter is specifically used to ensure that the README and
CHANGELOG are using plain reStructuredText which is compatible with
pypi's reStructuredText parser.
  • Loading branch information
jonathansick committed Mar 30, 2020
1 parent 2fa224f commit 0279f20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ repos:
hooks:
- id: check-yaml
- id: check-toml
- id: check-json
- id: trailing-whitespace

- repo: https://github.com/Lucas-C/pre-commit-hooks-markup
rev: v1.0.0
hooks:
- id: rst-linter
files: (README\.rst)|(CHANGELOG\.rst)

- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.4
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Change log
==================

- The first release of Safir featuring:

- ``safir.http`` for adding an ``aiohttp.ClientSession`` to your application.
- ``safir.logging`` for configuring structlog loggers.
- ``safir.metadata`` helps your gather and structure metadata about your application for publishing on metadata endpoints.
Expand Down

0 comments on commit 0279f20

Please sign in to comment.