Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

## [Unreleased]

## [0.6.1] - 2026-10-23

The `v0.6.0` tag was created without the version bump and changelog update, so it should not be used. This release
contains the changes intended for 0.6.0.

### Added

- Repeatable `--exclude` support for `mps-check-orphan-modules` and `mps-check-orphan-models`. Each is a
Expand Down Expand Up @@ -84,7 +89,8 @@ Initial release.
- `mps-check-module-naming`
- `mps-check-path-variables` / `mps-fix-path-variables`

[Unreleased]: https://github.com/specificlanguages/mps-pre-commit-hooks/compare/v0.5.0...HEAD
[Unreleased]: https://github.com/specificlanguages/mps-pre-commit-hooks/compare/v0.6.1...HEAD
[0.6.1]: https://github.com/specificlanguages/mps-pre-commit-hooks/compare/v0.5.0...v0.6.1
[0.5.0]: https://github.com/specificlanguages/mps-pre-commit-hooks/compare/v0.4.0...v0.5.0
[0.4.0]: https://github.com/specificlanguages/mps-pre-commit-hooks/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/specificlanguages/mps-pre-commit-hooks/compare/v0.2.0...v0.3.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Add the repo to your project's `.pre-commit-config.yaml`:
```yaml
repos:
- repo: https://github.com/specificlanguages/mps-pre-commit-hooks
rev: v0.5.0
rev: v0.6.1
hooks:
- id: mps-check-orphan-modules
- id: mps-check-unbuilt-modules
Expand Down
31 changes: 31 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Releasing

Releases are Git tags named `vX.Y.Z`. Users pin the tag through `rev:` in their `.pre-commit-config.yaml`, so the tag
must point at a commit that already contains the version bump and the changelog entry.

1. Start from an up-to-date `main` (or a branch that will be merged into `main` before tagging).
2. Choose the new version following [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
3. Update `CHANGELOG.md`:
- Rename the `[Unreleased]` entries into a new `## [X.Y.Z] - YYYY-MM-DD` section and leave an empty `## [Unreleased]`
above it.
- Update the link references at the bottom: `[Unreleased]` compares `vX.Y.Z...HEAD`, and add `[X.Y.Z]` comparing the
previous tag with `vX.Y.Z`.
4. Set `version` in `pyproject.toml` to `X.Y.Z`.
5. Run `uv lock` so the `mps-pre-commit-hooks` entry in `uv.lock` gets the new version.
6. Update `rev:` in the usage example in `README.md` to `vX.Y.Z`.
7. Run the checks:

```bash
uv run pytest
```

8. Commit as `Bump version to X.Y.Z`, push, and merge to `main`.
9. Tag the merge commit on `main` and push the tag:

```bash
git tag -a vX.Y.Z -m "Release X.Y.Z"
git push origin vX.Y.Z
```

Never move or delete a tag after pushing it, since users may already have it cached. If a tag was created too early,
release the next patch version instead and mention it in the changelog.
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 = "setuptools.build_meta"

[project]
name = "mps-pre-commit-hooks"
version = "0.5.0"
version = "0.6.1"
description = "Pre-commit hooks for JetBrains MPS projects"
readme = "README.md"
requires-python = ">=3.13"
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.

Loading