Skip to content
Snippets Groups Projects
Commit 5683fc93 authored by nimrod's avatar nimrod
Browse files

- Added reStructuredText and metadata in setup.py checks (WIP).

parent 1a375a53
No related branches found
No related tags found
No related merge requests found
......@@ -5,3 +5,8 @@
- id: check-yaml
- id: check-merge-conflict
- id: flake8
- repo: ./
sha: HEAD
hooks:
- id: reStructuredText
- id: metadata
......@@ -7,6 +7,9 @@ Python pre-commit hooks
Ansible `pre-commit <http://pre-commit.com/>`_ hooks.
- :code:`piprot`: Checks your requirements files for out of date packages.
- :code:`metadata`: Verifies the meta-data in :code:`setup.py`.
- :code:`reStructuredText`: Checks if long string meta-data syntax are
reStructuredText-compliant.
Installation
------------
......@@ -19,6 +22,8 @@ Add the following to your :code:`.pre-commit-config.yaml`:
sha: v0.1.0
hooks:
- id: piprot
- id: metadata
- id: reStructuredText
License
-------
......
......@@ -6,3 +6,15 @@
entry: piprot
args: ['--outdated']
files: 'requirements.*\.txt$'
- id: reStructuredText
name: Checks if long string meta-data syntax are reStructuredText-compliant.
language: python
entry: python
args: ['setup.py', 'check', '--strict', '--restructuredtext', '--']
files: setup\.py
- id: metadata
name: Verify meta-data
language: python
entry: python
args: ['setup.py', 'check', '--strict', '--metadata', '--']
files: setup\.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment