marshmallow-code / flask-smorest

DB agnostic framework to build auto-documented REST APIs with Flask and marshmallow
https://flask-smorest.readthedocs.io
MIT License
651 stars 72 forks source link

Exposing OpenApi documentation generation with pre-commit #667

Closed pat-jpnk closed 4 days ago

pat-jpnk commented 1 month ago

Added .pre-commit-hooks.yaml to expose OpenApi documentation generation to JSON and YAML

lafrech commented 6 days ago

Hi. Sorry about the response delay.

I don't get the point. Why add such hooks to this repo? Isn't your app repo the right place for that?

pat-jpnk commented 6 days ago

Actually, you are correct. pre-commit-hooks.yaml defines hooks while .pre-commit-config.yaml has the purpose of using hooks in respective repositories. However, pre-commit-hooks.yaml can be defined in a separate repository (e.g. https://github.com/Warchant/pre-commit-buildifier). I lost sight of that when I made this request. I will create a dedicated repository, thanks!