Skip to content

Commit 17230fe

Browse files
authored
Add blog post for v1.9.0 (#1163)
1 parent 1c413d3 commit 17230fe

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

.linkcheckerrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
[filtering]
33
ignore=
44
https://docs.astral.sh/ruff/rules/.+
5+
https://github.com/pypa/hatch/releases/tag/hatch-v.+
56

67
[AnchorCheck]

docs/blog/posts/release-hatch-190.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
date: 2023-12-18
3+
authors: [ofek]
4+
description: >-
5+
Hatch v1.9.0 brings improvements to static analysis and important bug fixes.
6+
categories:
7+
- Release
8+
---
9+
10+
# Hatch v1.9.0
11+
12+
Hatch [v1.9.0](https://github.com/pypa/hatch/releases/tag/hatch-v1.9.0) brings improvements to static analysis and important bug fixes.
13+
14+
<!-- more -->
15+
16+
## Static analysis
17+
18+
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).
19+
20+
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:
21+
22+
```toml config-example
23+
[tool.hatch.envs.hatch-static-analysis]
24+
dependencies = ["ruff==X.Y.Z"]
25+
```
26+
27+
## Notable fixes
28+
29+
- 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).
30+
- Fixed an edge case for out-of-the-box static analysis when there was existing configuration.
31+
- Compatibility checks for environments no longer occur if the environment is already created. This significantly increases the responsiveness of environment usage.

docs/history/hatch.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
## Unreleased
1010

11+
***Changed:***
12+
13+
- Environments prefixed by `hatch-` are now considered internal and used for special purposes such as configuration for static analysis
14+
1115
***Added:***
1216

1317
- Enable docstring formatting by default for static analysis

0 commit comments

Comments
 (0)