TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Flake8 Markdown – lint Python code blocks in Markdown files

1 pointsby franeyabout 6 years ago

1 comment

franeyabout 6 years ago
This is a little project I put together to help ensure that the code examples in my Pelican-built blog are correct and to build a package using Poetry[1].<p>It&#x27;s a thin wrapper around Flake8[2] that extracts backtick-style Python code blocks from Markdown files, pipes those code blocks to flake8, and updates flake8&#x27;s stdout output with line numbers from the original file.<p>Thanks for looking!<p>[1] <a href="https:&#x2F;&#x2F;poetry.eustace.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;poetry.eustace.io&#x2F;</a><p>[2] <a href="http:&#x2F;&#x2F;flake8.pycqa.org&#x2F;en&#x2F;latest&#x2F;" rel="nofollow">http:&#x2F;&#x2F;flake8.pycqa.org&#x2F;en&#x2F;latest&#x2F;</a><p>[3] <a href="https:&#x2F;&#x2F;pre-commit.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pre-commit.com&#x2F;</a>