TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A cross-platform wrapper for pyright that makes it less noisy

4 点作者 jamielinux大约 2 年前
This was mainly a fun weekend project to play around with Python&#x27;s asyncio! But it also scratched an itch.<p>pyright (a static type checker for Python) is far noisier than it needs to be:<p><pre><code> $ pyright WARNING: there is a new pyright version available (v1.1.300 -&gt; v1.1.301). Please install the new version or set PYRIGHT_PYTHON_FORCE_VERSION to `latest` No configuration file found. pyproject.toml file found at &#x2F;projects&#x2F;pyright_polite. Loading pyproject.toml file at &#x2F;projects&#x2F;pyright_polite&#x2F;pyproject.toml Assuming Python version 3.11 Assuming Python platform Linux Auto-excluding **&#x2F;node_modules Auto-excluding **&#x2F;__pycache__ Auto-excluding **&#x2F;.* stubPath &#x2F;projects&#x2F;pyright_polite&#x2F;typings is not a valid directory. Searching for source files Found 7 source files pyright 1.1.300 0 errors, 0 warnings, 0 informations Completed in 1.006sec </code></pre> pyright-polite reduces the output to this:<p><pre><code> $ pyright-polite Found 7 source files 0 errors, 0 warnings, 0 informations </code></pre> It takes the same arguments as pyright, supports &quot;--watch&quot; mode, and shows diagnostics with the same colorisation.<p>If anyone else happens to get mildly irritated by pyright&#x27;s output then perhaps give this a try :-)

暂无评论

暂无评论