style: adding pre-commit check-style.sh

This commit is contained in:
Henry Schreiner
2020-07-20 15:07:22 -04:00
committed by Henry Schreiner
parent b16347e51d
commit 8b0ccf7657
4 changed files with 22 additions and 42 deletions

View File

@@ -24,5 +24,14 @@ repos:
rev: 3.8.2
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
additional_dependencies: [flake8-bugbear, pep8-naming]
exclude: ^(docs/.*|tools/.*)$
- repo: local
hooks:
- id: check-style
name: Classic check-style
language: system
types:
- c++
entry: ./tools/check-style.sh