Skip to content

Commit b512034

Browse files
authored
Merge pull request #83 from Grimlock257/add-pre-commit-support
Adds support for pre-commit
2 parents 7e710aa + 3b8e435 commit b512034

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- id: openapi-spec-validator
2+
name: openapi-spec-validator
3+
entry: openapi-spec-validator
4+
description: Hook to validate Open API specs.
5+
language: python
6+
files: .*openapi.*\.(json|yaml|yml)

hooks.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- id: openapi-spec-validator
2+
name: openapi-spec-validator
3+
entry: openapi-spec-validator
4+
description: Hook to validate Open API specs.
5+
language: python
6+
files: .*openapi.*\.(json|yaml|yml)

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ def run_tests(self):
7676
"six",
7777
'pathlib2;python_version=="2.7"',
7878
],
79+
extras_require={
80+
'dev': [
81+
'pre-commit'
82+
]
83+
},
7984
tests_require=[
8085
"mock",
8186
"pytest",

0 commit comments

Comments
 (0)