tox: Use pre-commit for pep8 target
pre-commit is an effective linter runner. No need to duplicate things. We are able to remove our homegrown "is this valid JSON" check by using the one built into pre-commit. Beautiful! Change-Id: I89398d4a1c5d4e7205f5f9c499cba0b4ff90fa46 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
@@ -16,6 +16,8 @@ repos:
|
||||
- id: debug-statements
|
||||
# nova/cmd/manage.py imports pdb on purpose.
|
||||
exclude: 'nova/cmd/manage.py'
|
||||
- id: check-json
|
||||
files: .*\.json$
|
||||
- id: check-yaml
|
||||
files: .*\.(yaml|yml)$
|
||||
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
||||
|
||||
Reference in New Issue
Block a user