WeSearch

The lazy developer's code quality

·8 min read · 0 reactions · 0 comments · 4 views
#python#code quality#testing#linting#tooling
The lazy developer's code quality
⚡ TL;DR · AI summary

The article discusses a developer's journey to improve code quality in a Python project by adopting modern tools that minimize manual effort. The author evaluates and selects a streamlined toolchain including uv, ruff, pyright, and pre-commit to handle environment management, formatting, linting, and type checking. The focus is on reducing configuration overhead while maintaining high code standards, with reflections on the limitations of tools like pylint in understanding context and testing frameworks.

Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3872509) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Alessandra Bilardi Posted on Apr 30 • Originally published at alessandra.bilardi.net The lazy developer's code quality #pytest #ruff #pyright #uv A repo to refresh, several rabbit holes to dive into A while ago, at PyCon IT, I attended a talk that opened my eyes on pytest: simpler test management, especially for mocks parametrizable fixtures instead of the setUp / tearDown ritual bare assert instead of a thousand self.assertEqual I'd like my repo python-prototype, born for…

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)