renovate[bot] d04c78a6a2 chore(deps): Update compatible (#1512)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[annotate-snippets](https://redirect.github.com/rust-lang/annotate-snippets-rs)
| dependencies | patch | `0.12.11` → `0.12.12` |
| [anyhow](https://redirect.github.com/dtolnay/anyhow) | dependencies |
patch | `1.0.100` → `1.0.102` |
| [clap](https://redirect.github.com/clap-rs/clap) | dependencies |
patch | `4.5.56` → `4.5.60` |
| [env_logger](https://redirect.github.com/rust-cli/env_logger) |
dependencies | patch | `0.11.8` → `0.11.9` |
| [regex](https://redirect.github.com/rust-lang/regex) | dependencies |
patch | `1.12.2` → `1.12.3` |
| [regex](https://redirect.github.com/rust-lang/regex) |
dev-dependencies | patch | `1.12.2` → `1.12.3` |
| [schemars](https://graham.cool/schemars/)
([source](https://redirect.github.com/GREsau/schemars)) | dependencies |
patch | `1.2.0` → `1.2.1` |
| [toml](https://redirect.github.com/toml-rs/toml) | dependencies |
patch | `0.9.11+spec-1.1.0` → `0.9.12` |
| [unicode-ident](https://redirect.github.com/dtolnay/unicode-ident) |
dependencies | patch | `1.0.22` → `1.0.24` |

---

### Release Notes

<details>
<summary>rust-lang/annotate-snippets-rs (annotate-snippets)</summary>

###
[`v0.12.12`](https://redirect.github.com/rust-lang/annotate-snippets-rs/blob/HEAD/CHANGELOG.md#01212---2026-02-18)

[Compare
Source](https://redirect.github.com/rust-lang/annotate-snippets-rs/compare/0.12.11...0.12.12)

##### Added

- Add `no_std` support
[#&#8203;365](https://redirect.github.com/rust-lang/annotate-snippets-rs/pull/365)

</details>

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

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

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

- Remove backtrace dependency
([#&#8203;438](https://redirect.github.com/dtolnay/anyhow/issues/438),
[#&#8203;439](https://redirect.github.com/dtolnay/anyhow/issues/439),
[#&#8203;440](https://redirect.github.com/dtolnay/anyhow/issues/440),
[#&#8203;441](https://redirect.github.com/dtolnay/anyhow/issues/441),
[#&#8203;442](https://redirect.github.com/dtolnay/anyhow/issues/442))

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

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

- Add #\[inline] to anyhow::Ok helper
([#&#8203;437](https://redirect.github.com/dtolnay/anyhow/issues/437),
thanks [@&#8203;Ibitier](https://redirect.github.com/Ibitier))

</details>

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

###
[`v4.5.60`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4560---2026-02-19)

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

##### Fixes

- *(help)* Quote empty default values, possible values

###
[`v4.5.59`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4559---2026-02-16)

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

##### Fixes

- `Command::ignore_errors` no longer masks help/version on subcommands

###
[`v4.5.58`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4558---2026-02-11)

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

###
[`v4.5.57`](https://redirect.github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#4557---2026-02-03)

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

##### Fixes

- Regression from 4.5.55 where having an argument with
`.value_terminator("--")` caused problems with an argument with
`.last(true)`

</details>

<details>
<summary>rust-cli/env_logger (env_logger)</summary>

###
[`v0.11.9`](https://redirect.github.com/rust-cli/env_logger/blob/HEAD/CHANGELOG.md#0119---2026-02-11)

[Compare
Source](https://redirect.github.com/rust-cli/env_logger/compare/v0.11.8...v0.11.9)

</details>

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

###
[`v1.12.3`](https://redirect.github.com/rust-lang/regex/blob/HEAD/CHANGELOG.md#1123-2025-02-03)

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

\===================
This release excludes some unnecessary things from the archive published
to
crates.io. Specifically, fuzzing data and various shell scripts are now
excluded. If you run into problems, please file an issue.

Improvements:

- [#&#8203;1319](https://redirect.github.com/rust-lang/regex/pull/1319):
Switch from a Cargo `exclude` list to an `include` list, and exclude
some
  unnecessary stuff.

</details>

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

###
[`v1.2.1`](https://redirect.github.com/GREsau/schemars/blob/HEAD/CHANGELOG.md#121---2026-02-01)

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

##### Fixed

- `transform` attributes are now applied after the schema is otherwise
fully constructed. In particular, they're now applied after all other
attributes are processed.
([#&#8203;505](https://redirect.github.com/GREsau/schemars/issues/505))

</details>

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

###
[`v0.9.12`](https://redirect.github.com/toml-rs/toml/compare/toml-v0.9.11...toml-v0.9.12)

[Compare
Source](https://redirect.github.com/toml-rs/toml/compare/toml-v0.9.11...toml-v0.9.12)

</details>

<details>
<summary>dtolnay/unicode-ident (unicode-ident)</summary>

###
[`v1.0.24`](https://redirect.github.com/dtolnay/unicode-ident/releases/tag/1.0.24)

[Compare
Source](https://redirect.github.com/dtolnay/unicode-ident/compare/1.0.23...1.0.24)

- Compress trie even further by 1.9% using bipartite matching
([#&#8203;46](https://redirect.github.com/dtolnay/unicode-ident/issues/46),
thanks [@&#8203;yongqli](https://redirect.github.com/yongqli))

###
[`v1.0.23`](https://redirect.github.com/dtolnay/unicode-ident/releases/tag/1.0.23)

[Compare
Source](https://redirect.github.com/dtolnay/unicode-ident/compare/1.0.22...1.0.23)

- Update `rand` dev dependency to 0.10

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 5am on the first day of the
month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, 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:eyJjcmVhdGVkSW5WZXIiOiI0My40My4yIiwidXBkYXRlZEluVmVyIjoiNDMuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-01 01:06:00 +00:00
2026-02-27 10:30:57 -06:00
2021-10-25 10:29:37 -05:00
2026-02-27 10:30:57 -06:00
2026-02-27 10:30:57 -06: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
2023-05-22 13:30:04 -05:00
2026-01-28 14:55:41 -06:00
2026-02-27 10:30:57 -06: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-02-27 10:30:57 -06: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%