From d4015b4d67ef70a35fa7142c9c78da9ab44bae64 Mon Sep 17 00:00:00 2001 From: Jo <10510431+j178@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:22:22 +0800 Subject: [PATCH] Bump version to v0.0.3 (#77) --- CHANGELOG.md | 64 ++++++++++++++++++------------ Cargo.lock | 6 +-- Cargo.toml | 2 +- README.md | 4 +- pyproject.toml | 98 +++++++++++++++++++++++----------------------- scripts/release.sh | 0 6 files changed, 94 insertions(+), 80 deletions(-) mode change 100644 => 100755 scripts/release.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index a40052f..365ee25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,25 +1,39 @@ -# Changelog - -## 0.0.2 - -### Enhancements - -- Add `pre-commit self update` ([#68](https://github.com/j178/pre-commit-rs/pull/68)) -- Auto install uv ([#66](https://github.com/j178/pre-commit-rs/pull/66)) -- Generate shell completion ([#20](https://github.com/j178/pre-commit-rs/pull/20)) -- Implement `pre-commit clean` ([#24](https://github.com/j178/pre-commit-rs/pull/24)) -- Implement `pre-commit install` ([#28](https://github.com/j178/pre-commit-rs/pull/28)) -- Implement `pre-commit sample-config` ([#37](https://github.com/j178/pre-commit-rs/pull/37)) -- Implement `pre-commit uninstall` ([#36](https://github.com/j178/pre-commit-rs/pull/36)) -- Implement `pre-commit validate-config` ([#25](https://github.com/j178/pre-commit-rs/pull/25)) -- Implement `pre-commit validate-manifest` ([#26](https://github.com/j178/pre-commit-rs/pull/26)) -- Implement basic `pre-commit hook-impl` ([#63](https://github.com/j178/pre-commit-rs/pull/63)) -- Partition filenames and delegate to multiple subprocesses ([#7](https://github.com/j178/pre-commit-rs/pull/7)) -- Refactor xargs ([#8](https://github.com/j178/pre-commit-rs/pull/8)) -- Skip empty config argument ([#64](https://github.com/j178/pre-commit-rs/pull/64)) -- Use `fancy-regex` ([#62](https://github.com/j178/pre-commit-rs/pull/62)) -- feat: add fail language support ([#60](https://github.com/j178/pre-commit-rs/pull/60)) - -### Bug Fixes - -- Fix stage operate_on_files ([#65](https://github.com/j178/pre-commit-rs/pull/65)) +# Changelog + +## 0.0.3 + +### Bug fixes + +- Check uv installed after acquired lock ([#72](https://github.com/j178/pre-commit-rs/pull/72)) + +### Other changes + +- Add copyright of the original pre-commit to LICENSE ([#74](https://github.com/j178/pre-commit-rs/pull/74)) +- Add profiler ([#71](https://github.com/j178/pre-commit-rs/pull/71)) +- Publish to PyPI ([#70](https://github.com/j178/pre-commit-rs/pull/70)) +- Publish to crates.io ([#75](https://github.com/j178/pre-commit-rs/pull/75)) +- Rename pypi package to `pre-commit-rusty` ([#76](https://github.com/j178/pre-commit-rs/pull/76)) + +## 0.0.2 + +### Enhancements + +- Add `pre-commit self update` ([#68](https://github.com/j178/pre-commit-rs/pull/68)) +- Auto install uv ([#66](https://github.com/j178/pre-commit-rs/pull/66)) +- Generate shell completion ([#20](https://github.com/j178/pre-commit-rs/pull/20)) +- Implement `pre-commit clean` ([#24](https://github.com/j178/pre-commit-rs/pull/24)) +- Implement `pre-commit install` ([#28](https://github.com/j178/pre-commit-rs/pull/28)) +- Implement `pre-commit sample-config` ([#37](https://github.com/j178/pre-commit-rs/pull/37)) +- Implement `pre-commit uninstall` ([#36](https://github.com/j178/pre-commit-rs/pull/36)) +- Implement `pre-commit validate-config` ([#25](https://github.com/j178/pre-commit-rs/pull/25)) +- Implement `pre-commit validate-manifest` ([#26](https://github.com/j178/pre-commit-rs/pull/26)) +- Implement basic `pre-commit hook-impl` ([#63](https://github.com/j178/pre-commit-rs/pull/63)) +- Partition filenames and delegate to multiple subprocesses ([#7](https://github.com/j178/pre-commit-rs/pull/7)) +- Refactor xargs ([#8](https://github.com/j178/pre-commit-rs/pull/8)) +- Skip empty config argument ([#64](https://github.com/j178/pre-commit-rs/pull/64)) +- Use `fancy-regex` ([#62](https://github.com/j178/pre-commit-rs/pull/62)) +- feat: add fail language support ([#60](https://github.com/j178/pre-commit-rs/pull/60)) + +### Bug Fixes + +- Fix stage operate_on_files ([#65](https://github.com/j178/pre-commit-rs/pull/65)) diff --git a/Cargo.lock b/Cargo.lock index 25a3ed4..a143048 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1561,7 +1561,7 @@ dependencies = [ [[package]] name = "pre-commit-rs" -version = "0.0.2" +version = "0.0.3" dependencies = [ "anstream", "anyhow", @@ -2059,9 +2059,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.132" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" dependencies = [ "itoa", "memchr", diff --git a/Cargo.toml b/Cargo.toml index 8c06779..afa43af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pre-commit-rs" -version = "0.0.2" +version = "0.0.3" authors = ["j178 "] description = "pre-commit implemeneted in Rust" repository = "https://github.com/j178/pre-commit-rs" diff --git a/README.md b/README.md index f49117c..dad11ec 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,10 @@ It aims to be a drop-in replacement for the original tool while also providing s ```console # On Linux and macOS -curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/pre-commit-rs/releases/download/v0.0.2/pre-commit-rs-installer.sh | sh +curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/pre-commit-rs/releases/download/v0.0.3/pre-commit-rs-installer.sh | sh # On Windows -powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/pre-commit-rs/releases/download/v0.0.2/pre-commit-rs-installer.ps1 | iex" +powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/pre-commit-rs/releases/download/v0.0.3/pre-commit-rs-installer.ps1 | iex" ``` ### PyPI diff --git a/pyproject.toml b/pyproject.toml index a4e862e..5e3faa9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,49 +1,49 @@ -[project] -name = "pre-commit-rusty" -version = "0.0.2" -description = "pre-commit reimplemented in Rust" -authors = [{ name = "j178", email = "hi@j178.dev" }] -requires-python = ">=3.8" -keywords = [ "pre-commit", "git", "hooks" ] -readme = "README.md" -license = { file = "LICENSE" } -classfiers = [ - "Development Status :: 2 - Pre-Alpha", - "Environment :: Console", - "Intended Audience :: Developers", - "Operating System :: OS Independent", - "License :: OSI Approved :: MIT License", - "Programming Language :: Rust", - "Topic :: Software Development :: Quality Assurance" -] - -[project.urls] -Repository = "https://github.com/j178/pre-commit-rs" -Changelog = "https://github.com/j178/pre-commit-rs/blob/main/CHANGELOG.md" -Releases = "https://github.com/j178/pre-commit-rs/releases" - -[build-system] -requires = ["maturin>=1.0,<2.0"] -build-backend = "maturin" - -[tool.maturin] -bindings = "bin" - -[tool.rooster] -version_tag_prefix = "v" -major_labels = [] # We do not use the major version number yet -minor_labels = ["breaking"] -changelog_ignore_labels = ["internal", "ci", "testing"] -changelog_sections.breaking = "Breaking changes" -changelog_sections.enhancement = "Enhancements" -changelog_sections.compatibility = "Enhancements" -changelog_sections.performance = "Performance" -changelog_sections.bug = "Bug fixes" -changelog_sections.documentation = "Documentation" -changelog_sections.__unknown__ = "Other changes" -changelog_contributors = true - -version_files = [ - "README.md", - "Cargo.toml", -] +[project] +name = "pre-commit-rusty" +version = "0.0.3" +description = "pre-commit reimplemented in Rust" +authors = [{ name = "j178", email = "hi@j178.dev" }] +requires-python = ">=3.8" +keywords = [ "pre-commit", "git", "hooks" ] +readme = "README.md" +license = { file = "LICENSE" } +classfiers = [ + "Development Status :: 2 - Pre-Alpha", + "Environment :: Console", + "Intended Audience :: Developers", + "Operating System :: OS Independent", + "License :: OSI Approved :: MIT License", + "Programming Language :: Rust", + "Topic :: Software Development :: Quality Assurance" +] + +[project.urls] +Repository = "https://github.com/j178/pre-commit-rs" +Changelog = "https://github.com/j178/pre-commit-rs/blob/main/CHANGELOG.md" +Releases = "https://github.com/j178/pre-commit-rs/releases" + +[build-system] +requires = ["maturin>=1.0,<2.0"] +build-backend = "maturin" + +[tool.maturin] +bindings = "bin" + +[tool.rooster] +version_tag_prefix = "v" +major_labels = [] # We do not use the major version number yet +minor_labels = ["breaking"] +changelog_ignore_labels = ["internal", "ci", "testing"] +changelog_sections.breaking = "Breaking changes" +changelog_sections.enhancement = "Enhancements" +changelog_sections.compatibility = "Enhancements" +changelog_sections.performance = "Performance" +changelog_sections.bug = "Bug fixes" +changelog_sections.documentation = "Documentation" +changelog_sections.__unknown__ = "Other changes" +changelog_contributors = true + +version_files = [ + "README.md", + "Cargo.toml", +] diff --git a/scripts/release.sh b/scripts/release.sh old mode 100644 new mode 100755