Skip to content

Commit 0c99216

Browse files
Merge pull request #319 from neutrinoceros/rel/5.1.0
REL: prepare release 5.1.0
2 parents a712024 + b237cab commit 0c99216

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## Unreleased
7+
## [5.1.0] - 2024-12-13
88

99
- TYP: add missing `__all__` symbol to inifix's root namespace
1010
- TYP: fix errors reported by `pyright`

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,14 +376,14 @@ following configuration (add to `.pre-commit-config.yaml`)
376376

377377
```yaml
378378
- repo: https://github.com/neutrinoceros/inifix.git
379-
rev: v5.0.4
379+
rev: v5.1.0
380380
hooks:
381381
- id: inifix-validate
382382
```
383383
or
384384
```yaml
385385
- repo: https://github.com/neutrinoceros/inifix.git
386-
rev: v5.0.4
386+
rev: v5.1.0
387387
hooks:
388388
- id: inifix-format
389389
```
@@ -392,7 +392,7 @@ Note that `inifix-format` also validates data by default, so it is redundant to
392392
utilize both hooks. Validation and formatting may nonetheless be decoupled as
393393
```patch
394394
- repo: https://github.com/neutrinoceros/inifix.git
395-
rev: v5.0.4
395+
rev: v5.1.0
396396
hooks:
397397
- id: inifix-validate
398398
- id: inifix-format

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "inifix"
7-
version = "5.0.4"
7+
version = "5.1.0"
88
description = "An I/O library for Pluto-style ini files."
99
authors = [
1010
{ name = "C.M.T. Robert" },

scripts/pre_publish_checks.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ def check_static_version(md: Metadata) -> int:
6464

6565
def check_readme(md: Metadata) -> int:
6666
text = README.read_text()
67-
if text != (expected := REV_REGEXP.sub(f"rev: {md.latest_git_tag}", text)):
67+
if md.current_static_version.is_devrelease:
68+
expected_tag = md.latest_git_tag
69+
else:
70+
expected_tag = f"v{md.current_static_version}"
71+
if text != (expected := REV_REGEXP.sub(f"rev: {expected_tag}", text)):
6872
diff = "\n".join(
6973
line.removesuffix("\n")
7074
for line in unified_diff(

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)