Skip to content
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

Merged
merged 1 commit into from
Apr 12, 2022
Merged

Add pre-commit hook #1511

merged 1 commit into from
Apr 12, 2022

Conversation

RobbeSneyders
Copy link
Member

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.

@coveralls
Copy link

coveralls commented Apr 11, 2022

Pull Request Test Coverage Report for Build 2157241108

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.3%

Totals Coverage Status
Change from base Build 2144305241: 0.0%
Covered Lines: 2618
Relevant Lines: 2806

💛 - Coveralls

@hjacobs
Copy link
Contributor

hjacobs commented Apr 12, 2022

👍 pre-commit is cool 😄

@@ -39,10 +39,9 @@ def read_version(package):
]

tests_require = [
'decorator>=5,<6',
Copy link
Member Author

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',
Copy link
Member Author

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'],
Copy link
Member Author

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.

Copy link
Member

@Ruwann Ruwann left a 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!

@RobbeSneyders RobbeSneyders merged commit 7f29310 into main Apr 12, 2022
@RobbeSneyders RobbeSneyders deleted the feature/pre-commit branch April 12, 2022 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants