-
-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pre-commit hook #1511
Add pre-commit hook #1511
Conversation
bcce5a8
to
437d984
Compare
Pull Request Test Coverage Report for Build 2157241108
💛 - Coveralls |
👍 |
@@ -39,10 +39,9 @@ def read_version(package): | |||
] | |||
|
|||
tests_require = [ | |||
'decorator>=5,<6', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seem to be used.
'pytest-cov>=2,<3', | ||
'testfixtures>=6,<7', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seem to be used.
@@ -92,7 +91,6 @@ def readme(): | |||
url='https://github.com/zalando/connexion', | |||
keywords='openapi oai swagger rest api oauth flask microservice framework', | |||
license='Apache License Version 2.0', | |||
setup_requires=['flake8'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer needed here since we don't run flake8
via setup.py
anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for updating the README as well!
437d984
to
b3cbd96
Compare
This PR adds a pre-commit hook which runs the static analysis checks on the changed code before committing. The hook is reused by tox so the steps only need to be defined once.
This is a prerequisite for #1498.