Skip to content

Collection of pre-commit hooks for various checks

Notifications You must be signed in to change notification settings

IrrerPolterer/pre-commit-hooks

 
 

Repository files navigation

check-swagger

pre-commit hook to validate swagger specs, leveraging Yelp's swagger_spec_validator.

Applies to filenames matching the pattern .*swagger.*\.(json|yaml|yml).

Usage

pre-commit

Add the following entry to .pre-commit-config.yaml:

- repo: git://github.com/jstewmon/check-swagger
  sha: v0.1.4
  hooks:
  - id: check-swagger

Options:

  • -x PATTERN, --exclude PATTERN filename patterns to exclude from validation.

Standalone Usage

About

Collection of pre-commit hooks for various checks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%