Skip to content

Commit

Permalink
ci: remove typos check from release workflow and add it to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Dec 21, 2023
1 parent 50c3acb commit 6ac4326
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ jobs:
with:
fetch-depth: 0

- name: Check typos
uses: crate-ci/typos@master

- name: Generate a changelog
uses: orhun/git-cliff-action@main
id: git-cliff
Expand Down
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
Expand All @@ -16,6 +15,13 @@ repos:
name: 🪚 Fix end of files
- id: trailing-whitespace
name: ✂️ Trim trailing whitespaces
- repo: https://github.com/crate-ci/typos
rev: v1.16.25
hooks:
- id: typos
name: ✒️ Check typos
exclude: ^CHANGELOG.md$

- repo: local
hooks:
- id: rustfmt
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file.

## [unreleased]
## [0.5.0](https://github.com/vemonet/ptrie/compare/0.4.0..v0.5.0) - 2023-12-21

### ⛰️ Features

Expand All @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
### 📚 Documentation

- Update readme, add contributing.md, add git cliff to generate changelog, add pre-commit to automatically fmt and update changelog - ([61da9f9](https://github.com/vemonet/ptrie/commit/61da9f9456793d786ca3bb04719b27aa34f95759))
- Improve readme examples - ([50c3acb](https://github.com/vemonet/ptrie/commit/50c3acb6f26157e4a27c345bfdb6ba9da38d0b38))

### 🧪 Testing

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Publishing artifacts will be done by the `build.yml` workflow, make sure you hav

```bash
git tag -a v0.5.0 -m "v0.5.0"
git push origin v0.5.0
git cliff -o CHANGELOG.md
```

Expand Down

0 comments on commit 6ac4326

Please sign in to comment.