renovate[bot] 2a44449ff3 chore(deps): Update compatible (#1585)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [aho-corasick](https://redirect.github.com/BurntSushi/aho-corasick) |
dependencies | patch | `1.1.4` → `1.1.5` |
| [anyhow](https://redirect.github.com/dtolnay/anyhow) | dependencies |
patch | `1.0.103` → `1.0.104` |
| [bstr](https://redirect.github.com/BurntSushi/bstr) | dependencies |
minor | `1.12.3` → `1.13.0` |
| [clap](https://redirect.github.com/clap-rs/clap) | dependencies |
patch | `4.6.1` → `4.6.5` |
|
[globset](https://redirect.github.com/BurntSushi/ripgrep/tree/master/crates/globset)
([source](https://redirect.github.com/BurntSushi/ripgrep/tree/HEAD/crates/globset))
| dependencies | patch | `0.4.18` → `0.4.19` |
|
[ignore](https://redirect.github.com/BurntSushi/ripgrep/tree/master/crates/ignore)
([source](https://redirect.github.com/BurntSushi/ripgrep/tree/HEAD/crates/ignore))
| dependencies | patch | `0.4.26` → `0.4.32` |
| [regex](https://redirect.github.com/rust-lang/regex) | dependencies |
minor | `1.12.4` → `1.13.1` |
| [regex](https://redirect.github.com/rust-lang/regex) |
dev-dependencies | minor | `1.12.4` → `1.13.1` |
| [schemars](https://graham.cool/schemars/)
([source](https://redirect.github.com/GREsau/schemars)) | dependencies |
patch | `1.2.1` → `1.2.2` |
| [serde](https://serde.rs)
([source](https://redirect.github.com/serde-rs/serde)) | dependencies |
patch | `1.0.228` → `1.0.229` |
| [serde_json](https://redirect.github.com/serde-rs/json) | dependencies
| patch | `1.0.150` → `1.0.151` |
| [serde_json](https://redirect.github.com/serde-rs/json) |
dev-dependencies | patch | `1.0.150` → `1.0.151` |
| [thread_local](https://redirect.github.com/Amanieu/thread_local-rs) |
dependencies | patch | `1.1.9` → `1.1.10` |
| [toml](https://redirect.github.com/toml-rs/toml) | dependencies |
patch | `1.1.2+spec-1.1.0` → `1.1.4` |
| [trycmd](https://redirect.github.com/assert-rs/snapbox) |
dev-dependencies | patch | `1.2.0` → `1.2.1` |
| [winnow](https://redirect.github.com/winnow-rs/winnow) | dependencies
| patch | `1.0.3` → `1.0.4` |

---

### Release Notes

<details>
<summary>BurntSushi/aho-corasick (aho-corasick)</summary>

###
[`v1.1.5`](https://redirect.github.com/BurntSushi/aho-corasick/compare/1.1.4...1.1.5)

[Compare
Source](https://redirect.github.com/BurntSushi/aho-corasick/compare/1.1.4...1.1.5)

</details>

<details>
<summary>dtolnay/anyhow (anyhow)</summary>

###
[`v1.0.104`](https://redirect.github.com/dtolnay/anyhow/releases/tag/1.0.104)

[Compare
Source](https://redirect.github.com/dtolnay/anyhow/compare/1.0.103...1.0.104)

- Update `syn` dev-dependency to version 3

</details>

<details>
<summary>BurntSushi/bstr (bstr)</summary>

###
[`v1.13.0`](https://redirect.github.com/BurntSushi/bstr/compare/1.12.3...1.13.0)

[Compare
Source](https://redirect.github.com/BurntSushi/bstr/compare/1.12.3...1.13.0)

</details>

<details>
<summary>clap-rs/clap (clap)</summary>

###
[`v4.6.5`](https://redirect.github.com/clap-rs/clap/compare/clap_complete-v4.6.4...clap_complete-v4.6.5)

[Compare
Source](https://redirect.github.com/clap-rs/clap/compare/v4.6.4...v4.6.5)

###
[`v4.6.4`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#464---2026-07-21)

[Compare
Source](https://redirect.github.com/clap-rs/clap/compare/v4.6.3...v4.6.4)

##### Internal

- Update to syn v3

###
[`v4.6.3`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#463---2026-07-20)

[Compare
Source](https://redirect.github.com/clap-rs/clap/compare/v4.6.2...v4.6.3)

##### Fixes

- *(derive)* Allow `"literal".function()` as attribute values

###
[`v4.6.2`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#462---2026-07-15)

[Compare
Source](https://redirect.github.com/clap-rs/clap/compare/v4.6.1...v4.6.2)

##### Fixes

- *(help)* Say `alias` when there is only one

</details>

<details>
<summary>BurntSushi/ripgrep (globset)</summary>

###
[`v0.4.19`](https://redirect.github.com/BurntSushi/ripgrep/compare/globset-0.4.18...globset-0.4.19)

[Compare
Source](https://redirect.github.com/BurntSushi/ripgrep/compare/globset-0.4.18...globset-0.4.19)

</details>

<details>
<summary>BurntSushi/ripgrep (ignore)</summary>

###
[`v0.4.32`](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.31...ignore-0.4.32)

[Compare
Source](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.31...ignore-0.4.32)

###
[`v0.4.31`](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.30...ignore-0.4.31)

[Compare
Source](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.30...ignore-0.4.31)

###
[`v0.4.30`](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.29...ignore-0.4.30)

[Compare
Source](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.29...ignore-0.4.30)

###
[`v0.4.29`](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.28...ignore-0.4.29)

[Compare
Source](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.28...ignore-0.4.29)

###
[`v0.4.28`](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.27...ignore-0.4.28)

[Compare
Source](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.27...ignore-0.4.28)

###
[`v0.4.27`](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.26...ignore-0.4.27)

[Compare
Source](https://redirect.github.com/BurntSushi/ripgrep/compare/ignore-0.4.26...ignore-0.4.27)

</details>

<details>
<summary>rust-lang/regex (regex)</summary>

###
[`v1.13.1`](https://redirect.github.com/rust-lang/regex/blob/HEAD/CHANGELOG.md#1131-2026-07-15)

[Compare
Source](https://redirect.github.com/rust-lang/regex/compare/1.13.0...1.13.1)

\===================
This is a release that fixes a bug where incorrect regex match offsets
could be
reported. Note that this doesn't impact whether a match occurs or not,
just
where it occurs. The match offsets are still valid for slicing, they
just may
not refer to the correct leftmost-first match. See
[#&#8203;1364](https://redirect.github.com/rust-lang/regex/pull/1364)
for (many) more details.

Bug fixes:

-
[#&#8203;1354](https://redirect.github.com/rust-lang/regex/issues/1354):
  Fixes previously unsound reverse suffix and inner optimizations.

###
[`v1.13.0`](https://redirect.github.com/rust-lang/regex/blob/HEAD/CHANGELOG.md#1130-2026-07-09)

[Compare
Source](https://redirect.github.com/rust-lang/regex/compare/1.12.4...1.13.0)

\===================
This release includes a new API, a `regex!` macro, for lazy compilation
of
a regex from a string literal. If you use regexes a lot, it's likely
you've
already written one exactly like it. The new macro can be used like
this:

```rust
use regex::regex;

fn is_match(line: &str) -> bool {
    // The regex will be compiled approximately once and reused automatically.
    // This avoids the footgun of using `Regex::new` here, which would
    // guarantee that it would be compiled every time this routine is called.
    // This would likely make this routine much slower than it needs to be.
    regex!(r"bar|baz").is_match(line)
}

let hay = "\
path/to/foo:54:Blue Harvest
path/to/bar:90:Something, Something, Something, Dark Side
path/to/baz:3:It's a Trap!
";

let matches = hay.lines().filter(|line| is_match(line)).count();
assert_eq!(matches, 2);
```

Improvements:

- [#&#8203;709](https://redirect.github.com/rust-lang/regex/issues/709):
Add a new `regex!` macro for efficient and automatic reuse of a compiled
regex.

</details>

<details>
<summary>GREsau/schemars (schemars)</summary>

###
[`v1.2.2`](https://redirect.github.com/GREsau/schemars/blob/HEAD/CHANGELOG.md#122---2026-07-27)

[Compare
Source](https://redirect.github.com/GREsau/schemars/compare/v1.2.1...v1.2.2)

- Update to syn 3 in schemars\_derive

</details>

<details>
<summary>serde-rs/serde (serde)</summary>

###
[`v1.0.229`](https://redirect.github.com/serde-rs/serde/releases/tag/v1.0.229)

[Compare
Source](https://redirect.github.com/serde-rs/serde/compare/v1.0.228...v1.0.229)

- Update to syn 3

</details>

<details>
<summary>serde-rs/json (serde_json)</summary>

###
[`v1.0.151`](https://redirect.github.com/serde-rs/json/releases/tag/v1.0.151)

[Compare
Source](https://redirect.github.com/serde-rs/json/compare/v1.0.150...v1.0.151)

- Add RawValue::from\_string\_unchecked
([#&#8203;1331](https://redirect.github.com/serde-rs/json/issues/1331),
thanks
[@&#8203;WonderLawrence](https://redirect.github.com/WonderLawrence))

</details>

<details>
<summary>Amanieu/thread_local-rs (thread_local)</summary>

###
[`v1.1.10`](https://redirect.github.com/Amanieu/thread_local-rs/blob/HEAD/CHANGELOG.md#1110---2026-07-10)

[Compare
Source](https://redirect.github.com/Amanieu/thread_local-rs/compare/v1.1.9...v1.1.10)

##### Fixed

- Fix undefined behavior when `get_or` or `get_or_try` reentrantly
initializes the same `ThreadLocal`
([#&#8203;97](https://redirect.github.com/Amanieu/thread_local-rs/issues/97)).
- Fix an integer underflow in iterator `size_hint` implementations
([#&#8203;89](https://redirect.github.com/Amanieu/thread_local-rs/issues/89)).
- Fix compilation with the `nightly` feature enabled
([#&#8203;96](https://redirect.github.com/Amanieu/thread_local-rs/issues/96)).

##### Changed

- `ThreadLocal::get` no longer allocates a thread ID or registers a
thread-local destructor when no value exists for the current thread
([#&#8203;84](https://redirect.github.com/Amanieu/thread_local-rs/issues/84)).

</details>

<details>
<summary>toml-rs/toml (toml)</summary>

###
[`v1.1.4`](https://redirect.github.com/toml-rs/toml/compare/toml-v1.1.3...toml-v1.1.4)

[Compare
Source](https://redirect.github.com/toml-rs/toml/compare/toml-v1.1.3...toml-v1.1.4)

###
[`v1.1.3`](https://redirect.github.com/toml-rs/toml/compare/toml-v1.1.2...toml-v1.1.3)

[Compare
Source](https://redirect.github.com/toml-rs/toml/compare/toml-v1.1.2...toml-v1.1.3)

</details>

<details>
<summary>assert-rs/snapbox (trycmd)</summary>

###
[`v1.2.1`](https://redirect.github.com/assert-rs/snapbox/compare/trycmd-v1.2.0...trycmd-v1.2.1)

[Compare
Source](https://redirect.github.com/assert-rs/snapbox/compare/trycmd-v1.2.0...trycmd-v1.2.1)

</details>

<details>
<summary>winnow-rs/winnow (winnow)</summary>

###
[`v1.0.4`](https://redirect.github.com/winnow-rs/winnow/blob/HEAD/CHANGELOG.md#104---2026-07-13)

[Compare
Source](https://redirect.github.com/winnow-rs/winnow/compare/v1.0.3...v1.0.4)

##### Fixes

- Expand the number of supported fields for `seq!` from 22 to 32

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - "before 5am on the first day of the month"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/crate-ci/typos).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zLjIiLCJ1cGRhdGVkSW5WZXIiOiI0NC4zLjIiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOltdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-08-03 17:07:17 +00:00
2026-08-03 11:08:33 -05:00
2021-10-25 10:29:37 -05:00
2026-08-03 11:08:33 -05:00
2025-12-26 09:00:17 -06:00
2023-03-29 14:33:22 -05:00
2020-08-20 19:37:37 -05:00
2026-08-03 11:13:00 -05:00
2026-08-03 11:08:33 -05:00
2023-03-29 14:33:22 -05:00
2025-10-01 11:14:48 -05:00
2025-09-18 13:39:37 -05:00
2024-07-20 23:59:40 +02:00
2023-03-29 14:33:22 -05:00
2023-03-29 14:33:22 -05:00
2025-12-11 08:29:57 +01:00
2023-03-29 14:51:13 -05:00
2026-08-03 11:08:33 -05:00

typos

Source code spell checker

Finds and corrects spelling mistakes among source code:

  • Fast enough to run on monorepos
  • Low false positives so you can run on PRs

Screenshot

Downloads codecov Documentation License Crates Status

Dual-licensed under MIT or Apache 2.0

Documentation

Install

Download a pre-built binary (installable via gh-install).

Or use rust to install:

$ cargo install typos-cli --locked

Or use Homebrew to install:

$ brew install typos-cli

Or use Conda to install:

$ conda install typos

Or use Pacman to install:

$ sudo pacman -S typos

Getting Started

Most commonly, you'll either want to see what typos are available with

$ typos

Or have them fixed

$ typos --write-changes
$ typos -w

If there is any ambiguity (multiple possible corrections), typos will just report it to the user and move on.

False Positives

Sometimes, what looks like a typo is intentional, like with people's names, acronyms, or localized content.

To mark a word or an identifier (grouping of words) as valid, add it to your _typos.toml by declaring itself as the valid spelling:

[default]
extend-ignore-identifiers-re = [
    # *sigh* this just isn't worth the cost of fixing
    "AttributeID.*Supress.*",
]

[default.extend-identifiers]
# *sigh* this just isn't worth the cost of fixing
AttributeIDSupressMenu = "AttributeIDSupressMenu"

[default.extend-words]
# Don't correct the surname "Teh"
teh = "teh"

For more ways to ignore or extend the dictionary with examples, see the config reference.

For cases like localized content, you can disable spell checking of file contents while still checking the file name:

[type.po]
extend-glob = ["*.po"]
check-file = false

(run typos --type-list to see configured file types)

If you need some more flexibility, you can completely exclude some files from consideration:

[files]
extend-exclude = ["localized/*.po"]

Integrations

Custom

typos provides several building blocks for custom native integrations

  • - reads from stdin, --write-changes will be written to stdout
  • --diff to provide a diff
  • --format json to get jsonlines with exit code 0 on no errors, code 2 on typos, anything else is an error.

Examples:

$ # Read file from stdin, write corrected version to stdout
$ typos - --write-changes
$ # Creates a diff of what would change
$ typos dir/file --diff
$ # Fully programmatic control
$ typos dir/file --format json

Debugging

You can see what the effective config looks like by running

$ typos --dump-config -

You can then see how typos is processing your project with

$ typos --files
$ typos --identifiers
$ typos --words

If you need to dig in more, you can enable debug logging with -v

FAQ

Why was ... not corrected?

Does the file show up in typos --files? If not, check your config with typos --dump-config -. The [files] table controls how we walk files. If you are using files.extend-exclude, are you running into #593? If you are using files.ignore-vcs = true, is the file in your .gitignore but git tracks it anyways? Prefer allowing the file explicitly (see #909).

Does the identifier show up in typos --identifiers or the word show up in typos --words? If not, it might be subject to one of typos' heuristics for detecting non-words (like hashes) or unambiguous words (like words after a \ escape).

If it is showing up, likely typos doesn't know about it yet.

typos maintains a list of known typo corrections to keep the false positive count low so it can safely run unassisted.

This is in contrast to most spell checking UIs people use where there is a known list of valid words. In this case, the spell checker tries to guess your intent by finding the closest-looking word. It then has a gauge for when a word isn't close enough and assumes you know best. The user has the opportunity to verify these corrections and explicitly allow or reject them.

For more on the trade offs of these approaches, see Design.

S
Description
No description provided
Readme
114 MiB
Languages
Rust 95.8%
Shell 3.9%
Python 0.2%