Skip to content

Commit

Permalink
Merge pull request #319 from neutrinoceros/rel/5.1.0
Browse files Browse the repository at this point in the history
REL: prepare release 5.1.0
  • Loading branch information
neutrinoceros authored Dec 13, 2024
2 parents a712024 + b237cab commit 0c99216
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## [5.1.0] - 2024-12-13

- TYP: add missing `__all__` symbol to inifix's root namespace
- TYP: fix errors reported by `pyright`
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,14 @@ following configuration (add to `.pre-commit-config.yaml`)

```yaml
- repo: https://github.com/neutrinoceros/inifix.git
rev: v5.0.4
rev: v5.1.0
hooks:
- id: inifix-validate
```
or
```yaml
- repo: https://github.com/neutrinoceros/inifix.git
rev: v5.0.4
rev: v5.1.0
hooks:
- id: inifix-format
```
Expand All @@ -392,7 +392,7 @@ Note that `inifix-format` also validates data by default, so it is redundant to
utilize both hooks. Validation and formatting may nonetheless be decoupled as
```patch
- repo: https://github.com/neutrinoceros/inifix.git
rev: v5.0.4
rev: v5.1.0
hooks:
- id: inifix-validate
- id: inifix-format
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "inifix"
version = "5.0.4"
version = "5.1.0"
description = "An I/O library for Pluto-style ini files."
authors = [
{ name = "C.M.T. Robert" },
Expand Down
6 changes: 5 additions & 1 deletion scripts/pre_publish_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ def check_static_version(md: Metadata) -> int:

def check_readme(md: Metadata) -> int:
text = README.read_text()
if text != (expected := REV_REGEXP.sub(f"rev: {md.latest_git_tag}", text)):
if md.current_static_version.is_devrelease:
expected_tag = md.latest_git_tag
else:
expected_tag = f"v{md.current_static_version}"
if text != (expected := REV_REGEXP.sub(f"rev: {expected_tag}", text)):
diff = "\n".join(
line.removesuffix("\n")
for line in unified_diff(
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c99216

Please sign in to comment.