Skip to content

Add support to run as a pre-commit hook#2588

Merged
sobolevn merged 9 commits intowemake-services:masterfrom
luminoso:master
Dec 15, 2024
Merged

Add support to run as a pre-commit hook#2588
sobolevn merged 9 commits intowemake-services:masterfrom
luminoso:master

Conversation

@luminoso
Copy link
Copy Markdown
Contributor

@luminoso luminoso commented Mar 12, 2023

I have made things!

I am adding .pre-commit-hooks.yaml to make it possible to run wemake-python-styleguide as a pre-commit hook.

The syntax is the same as flake8 repo (which is also generated via pre-commit try-repo command)

Checklist

  • I have double checked that there are no unrelated changes in this pull request (old patches, accidental config files, etc)
  • I have created at least one test case for the changes I have made
  • I have updated the documentation for the changes I have made
  • I have added my changes to the CHANGELOG.md

Related issues

🙏 Please, if you or your company is finding wemake-python-styleguide valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/wemake-python-styleguide. As a thank you, your profile/company logo will be added to our main README which receives hundreds of unique visitors per day.

@rusmux
Copy link
Copy Markdown

rusmux commented Nov 26, 2023

Any updates on this?

@luminoso
Copy link
Copy Markdown
Contributor Author

It looks like one validation is missing. I'll update it later for full conformity

@luminoso
Copy link
Copy Markdown
Contributor Author

luminoso commented Dec 4, 2023

Everything looks ok. Tagging @sobolevn for visibility

Copy link
Copy Markdown
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Sorry for the long review :)

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d8819b6) to head (641c4dc).
Report is 171 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2588   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          119       119           
  Lines         5806      5806           
  Branches       803       803           
=========================================
  Hits          5806      5806           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sobolevn sobolevn merged commit 0ce86f3 into wemake-services:master Dec 15, 2024
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.

3 participants