Skip to content

Commit 3b8e435

Browse files
committed
Adds support for pre-commit
1 parent f13bd8c commit 3b8e435

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.pre-commit-hooks.yaml

+6
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

+6
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

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ def run_tests(self):
7575
"six",
7676
'pathlib2;python_version=="2.7"',
7777
],
78+
extras_require={
79+
'dev': [
80+
'pre-commit'
81+
]
82+
},
7883
tests_require=[
7984
"mock",
8085
"pytest",

0 commit comments

Comments
 (0)