Skip to content

Commit

Permalink
Augment .pre-commit (#257)
Browse files Browse the repository at this point in the history
Avoid commit to master branch, and check RST files.
  • Loading branch information
berland authored Jan 27, 2021
1 parent 54ef607 commit 0eac752
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: no-commit-to-branch
args: ['--branch', 'master']
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
Expand All @@ -19,3 +21,9 @@ repos:
rev: 3.8.4
hooks:
- id: flake8

- repo: https://github.com/lorman/pre-commit-rstcheck
rev: ''
hooks:
- id: rstcheck
args: ['-r', 'docs']

0 comments on commit 0eac752

Please sign in to comment.