Skip to content

Hatch v1.9.0Hatch v1.9.0

Hatch v1.9.0 brings improvements to static analysis and important bug fixes.Hatch v1.9.0 は、静的解析の改善と重要なバグ修正をもたらします。

Static analysis静的解析

The default version of Ruff has been increased to v0.1.8. This release brings formatting capabilities to docstrings and Hatch enables this by default with line length set to 80. This length was chosen as the default because it plays nicely with the rendering of the most popular themes for Python documentation, such as Material for MkDocs and Furo.Ruffのデフォルトバージョンがv0.1.8に引き上げられました。このリリースでは、docstringsにフォーマット機能が追加され、Hatchはデフォルトで行の長さを80に設定してこれを有効にします。この長さは、Material for MkDocsFuroなど、Pythonドキュメントの最も人気のあるテーマのレンダリングと相性が良いため、デフォルトとして選ばれました。

Additionally, it is now possible for projects to pin to specific versions of Ruff for upgrading at a later time:さらに、プロジェクトが特定のRuffのバージョンに固定して、後でアップグレードできるようになりました:

[tool.hatch.envs.hatch-static-analysis]
dependencies = ["ruff==X.Y.Z"]
[envs.hatch-static-analysis]
dependencies = ["ruff==X.Y.Z"]

Notable fixes注目すべき修正

  • Python resolution for environments that do not install the project is no longer bound by the project's Python requirement.プロジェクトをインストールしない環境に対するPythonの解決は、もはやプロジェクトのPython要件に制約されません。
  • Fixed an edge case for out-of-the-box static analysis when there was existing configuration.既存の設定がある場合の、初期状態の静的解析に関するエッジケースを修正しました。
  • Compatibility checks for environments no longer occur if the environment is already created. This significantly increases the responsiveness of environment usage.環境がすでに作成されている場合、環境の互換性チェックは行われなくなります。これにより、環境の使用に対する応答性が大幅に向上します。