Skip to content

Commit

Permalink
Add blog post for v1.9.0 (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored Dec 19, 2023
1 parent 1c413d3 commit 17230fe
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions .linkcheckerrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
[filtering]
ignore=
https://docs.astral.sh/ruff/rules/.+
https://github.com/pypa/hatch/releases/tag/hatch-v.+

[AnchorCheck]
31 changes: 31 additions & 0 deletions docs/blog/posts/release-hatch-190.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
date: 2023-12-18
authors: [ofek]
description: >-
Hatch v1.9.0 brings improvements to static analysis and important bug fixes.
categories:
- Release
---

# Hatch v1.9.0

Hatch [v1.9.0](https://github.com/pypa/hatch/releases/tag/hatch-v1.9.0) brings improvements to static analysis and important bug fixes.

<!-- more -->

## Static analysis

The default version of Ruff has been increased to [v0.1.8](https://astral.sh/blog/ruff-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](https://github.com/squidfunk/mkdocs-material) and [Furo](https://github.com/pradyunsg/furo).

Additionally, it is now possible for projects to [pin](../../config/static-analysis.md#versioning) to specific versions of Ruff for upgrading at a later time:

```toml config-example
[tool.hatch.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](../../config/metadata.md#python-support).
- 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.
4 changes: 4 additions & 0 deletions docs/history/hatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

***Changed:***

- Environments prefixed by `hatch-` are now considered internal and used for special purposes such as configuration for static analysis

***Added:***

- Enable docstring formatting by default for static analysis
Expand Down

0 comments on commit 17230fe

Please sign in to comment.