wemake-python-styleguide icon indicating copy to clipboard operation
wemake-python-styleguide copied to clipboard

Add support to run as a pre-commit hook

Open luminoso opened this issue 1 year ago • 3 comments

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

  • [x] 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
  • [x] I have updated the documentation for the changes I have made
  • [x] 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.

luminoso avatar Mar 12 '23 22:03 luminoso

Any updates on this?

rusmux avatar Nov 26 '23 14:11 rusmux

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

luminoso avatar Nov 26 '23 14:11 luminoso

Everything looks ok. Tagging @sobolevn for visibility

luminoso avatar Dec 04 '23 10:12 luminoso