Skip to content

Commit 1b87138

Browse files
committed
add more checks
1 parent 91e6ade commit 1b87138

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ jobs:
5656
run: |
5757
python -m pip install --upgrade pip
5858
pip install setuptools wheel twine
59+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
60+
- name: Test with rstcheck
61+
run: |
62+
rstcheck README.rst
5963
- name: Build and check
6064
run: |
6165
python setup.py sdist bdist_wheel

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/psf/black
5-
rev: 21.5b1
5+
rev: 21.6b0
66
hooks:
77
- id: black
8+
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup
9+
rev: v1.0.1
10+
hooks:
11+
- id: rst-linter

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ This project uses `pre-commit`_ to enforce code-quality. After cloning the repos
5858
After that pre-commit will run `all defined hooks`_ on every ``git commit`` and keep you from committing if there are any errors.
5959

6060
.. _black: https://github.com/psf/black
61+
.. _rst-linter: https://github.com/Lucas-C/pre-commit-hooks-markup
6162
.. _pre-commit: https://pre-commit.com/
6263
.. _all defined hooks: .pre-commit-config.yaml

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ python-lsp-server
22
mypy
33
black
44
pre-commit
5+
rstcheck

0 commit comments

Comments
 (0)