Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    S

    Sourcery Blog

    sourcery.ai · Company blog · on HN since 2019

    The company blog for Sourcery, a Python refactoring tool, covering code quality, project setup, code review, and LLM code generation.

    Visit blogHN submissions
    ProgrammingAI & Machine LearningOpen Source & Linux
    What HN says

    Commenters mention the Sourcery tool as one a team adopted by word of mouth and liked, and link its follow-up post on dependency architecture.

    Stats for nerds
    17HN people shared it
    52linked in comments
    312story points
    Jun 2025last shared
    2019people per year2025

    Top posts on HN

    1. 1
      How to set up a perfect Python project
      3 people · 76 points · first shared 2019 · 48 comments on HN
    2. 2
      Trying out the panel-of-experts prompting strategy for LLMs
      1 person · 46 points · first shared 2024 · 10 comments on HN
    3. 3
      Chatting with Sebastian Witowski: Code Standards, Tooling, and Working in Teams
      1 person · 37 points · first shared 2022 · Discussion on HN
    4. 4
      Zero-Cost Exceptions and Error Interfaces
      1 person · 36 points · first shared 2022 · 42 comments on HN
    5. 5
      Show HN: Sourcery – It's not magic, just powerful instant refactoring for Python
      5 people · 22 points · first shared 2019 · 2 comments on HN
    6. 6
      Is your code too complicated?
      2 people · 15 points · first shared 2022 · 1 comments on HN
    7. 7
      Code Review: What and What Not to Automate?
      3 people · 5 points · first shared 2023 · Discussion on HN
    8. 8
      5 Refactoring tips to improve your code – with tea-based Python examples
      1 person · 5 points · first shared 2020 · Discussion on HN
    9. 9
      Chatting with Sebastian Witowski – Part II: Python Community and Developer Tools
      1 person · 5 points · first shared 2022 · Discussion on HN
    10. 10
      Working memory: metric for state a programmer needs to keep in their head
      2 people · 4 points · first shared 2023 · Discussion on HN

    What HN people wrote when they linked it

    • usrmeFeb 2023

      To those that wish to automate a subset of these conventions, there is a tool called Sourcery[1] that I, personally, am a huge fan of! Not only does it have a large set of default rules[2], but it can also allow you to write your own rules that may be specific to your team or organization, and as mentioned it can enable you to follow Google's Python style guide as well[3].

      There are some refactorings that Sourcery suggest that I don't agree with myself, namely the usage of 'contextlib.suppress'[4] as I don't like to introduce an additional 'import' statement just to do something so trivial. I wish Sourcery would add the relevance of having possibly too many 'import' statements as a heuristic.

      ---

      [1]: https://sourcery.ai/

      [2]: https://docs.sourcery.ai/Reference/Default-Rules/ (expand the sub-pages)

      [3]: https://docs.sourcery.ai/Reference/Optional-Rules/gpsg/

      [4]: https://docs.sourcery.ai/Reference/Default-Rules/refactorings/use-contextlib-suppress/

    • claytonjyDec 2021

      > So now I have two different black calls: in the pre-commit hook and in the CI/CD. And they must be of the same version.

      > Can the framework run off the venv dir?

      It can, but it means not using the hooks from the tool's repo and writing your own. This blog post [0] shows the pipenv version of some common hooks; mine look the same but s/pipenv/poetry.

      If there's a way to use the upstream hooks with your local venv, so I can trust the tool maintainers for proper configuration, I'd love to know about it.

      [0] https://sourcery.ai/blog/python-best-practices/

    • hbrnDec 2022

      This (plus Law of Demeter) is the right way to handle medium-big size projects, though I'm not completely sold on the tooling. I mostly do it manually (yes, it is still doable with dozens of modules since dependency hierarchy doesn't change often).

      One recommendation I have is to present the hierarchy as DAG. Existing image (https://sourcery.ai/static/05300f06cb847360719e2aa31dc5a31b/8c857/dependencies.png) doesn't make it very obvious that api is a highest-level module, even though it is clearly stated in the rules.

    • stuartjohnson12Mar 2023

      In my experience, the developer tools that really catch on do so via word of mouth. For example, our whole team recently adopted https://sourcery.ai/ (not an ad) because one developer tried it and hyped it up to everyone else who also liked it. Developers are the best kind of customers if you have PMF - they evangelise and actively enjoy debating toolchains.

      The hard part is usually building the actually valuable tool.

    • buschkowitzDec 2019

      I find myself coming back to this guide whenever I set up a new project: https://sourcery.ai/blog/python-best-practices/

    • rekahrvDec 2022

      A follow-up post:
      https://sourcery.ai/blog/dependency-architecture/

    Related

    Prefect Blogprefect.io35 people

    The Prefect open source workflow engine

    Prefect Blog
    Company · last shared 2026
    Sourcegraph Blogabout.sourcegraph.com156 people

    An ex-Googler’s guide to dev tools

    Sourcegraph Blog
    Company · last shared 2024
    GitHub Bloggithub.blog1.8k people

    YouTube-dl's repository has been restored

    GitHub Blog
    Company · last shared 2026
    Rust Blogblog.rust-lang.org533 people

    Announcing Rust 1.0

    Rust Blog
    Company · last shared 2026
    Sentry Blogblog.sentry.io146 people

    We Just Gave $155k to Open Source Maintainers

    Sentry Blog
    Company · last shared 2026
    Go Blogblog.golang.org529 people

    Go 2, here we come

    Go Blog
    Company · last shared 2026
    Python Software Foundation Blogpyfound.blogspot.com147 people

    PSF has withdrawn $1.5M proposal to US Government grant program

    Python Software Foundation Blog
    Company · last shared 2026
    source{d} Blogblog.sourced.tech21 people

    Analyzing GitHub, how developers change programming languages over time

    source{d} Blog
    Company · last shared 2019