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.

What is your recommended linting setup for a Py3.10 project?

2 pointsby sambalbadjakover 2 years ago
There are currently quite a few ways how to lint your Python project. Flake8, flake9 which is a fork of flake8 that supports pyproject.toml, pyflakes, pep8, black and probably many more. And they&#x27;re configurable by multiple configuration files; .flake8, setup.cfg, .black, pyproject.toml.<p>What setup would you use if you start a Python3.10 project from scratch today?

1 comment

backslash_16over 2 years ago
I like Black and Pylance, which is backed up pyright. Pylance and VS Code for dev time analysis (even though it has a few annoying issues like auto-importing the wrong paths) and pyright for &quot;build&quot; and test time analysis.<p>I set black to a longer line length like 100 or 110 depending on who I&#x27;m working with. Black makes sure everything has consistent formatting.