Skip to content

Hatch v1.9.0

Hatch v1.9.0 brings improvements to static analysis and important bug fixes.

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.

Additionally, it is now possible for projects to pin to specific versions of Ruff for upgrading at a later time:

dependencies = ["ruff==X.Y.Z"]
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.
  • 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.