This is the 3rd launch from Sourcery AI. View more
Sourcery 2.0
Continuous code review to make your code more maintainable
Sourcery makes sure all of your code is following best practices from standard Pythonic rules to issues that pop up during code reviews. Add to your IDE to get instant feedback, use the CLI to review existing code, or integrate it into your CI.
Hey Product Hunt 👋 -
@brendan_maginnis, @nick_thapen, and I are back and we’re very excited to be sharing the new version of Sourcery with you all.
Sourcery sits in the background while you work analyzing your code, finding problems, and suggesting improvements to make sure it’s following best practices. You can think of it as the first layer of code review, catching mistakes before a human reviewer needs to take a look. As always - Sourcery runs fully locally, so your code is private.
Here’s what’s new:
1. Extend Sourcery to handle your best practices. You shouldn’t have to make the same comment more than one time in a code review. When you see issues coming up frequently you can create a Sourcery rule, and these issues will get caught for your whole team before the code is merged.
2. Leverage Pre-Built Rulesets. We’ve taken the Google Python Style Guide and made it available as a (set of Sourcery rules). Pick and choose the rules that make sense for you (and customize them how you want) or add in the full ruleset.
3. CLI for bulk review. We’ve extended the Sourcery CLI to make it more powerful (and much quicker) for reviewing multiple files, or your entire repo. With a single command you can scan hundreds of files, identify common issues, and make bulk changes to improve your code.
4. Review every commit with Sourcery in CI. Let Sourcery handle the first layer of your code reviews by adding it to your CI. Sourcery is easily configurable to run only on changed code to help cut down on noise from legacy code.
Anyone can start using Sourcery for free, and teams coming through ProductHunt with promo code PRODUCTHUNT2022 can use the full team version (includes full use in CI or as a pre—commit hook - see more details at https://sourcery.ai/team/) for free for 2 months.
I use sorcery everyday for the last 2 years. I love combining it with GitHub Copilot to really speed up my development process!
For example CoPilot generates code, then Sourcery improves it and fits it into our style guides.
Finally there is nothing quite as satisfying as using the CLI to refactor a huge out-of-date repo.
@brendan_maginnis@nick_thapen@tim_sourcery
Sourcery Pro has been extremely useful in improving Python code. Using it constantly (multiple times per day) since last year and a half that I discovered it. It is easy to configure if you prefer to not use some of the rules or if you want to add rules (for the adding you need the teams edition). Looking forward to get the teams edition into our company, so far using Pro. The response from support for features and questions has been great.
I work on a lot of solo projects that get pretty complex and sourcery helps review my PRs. It is an excellent reviewer and has saved me tons of time in many situations.
Sourcery AI
Sourcery AI
Sourcery AI
Sourcery AI
Sourcery AI