mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-16 17:25:10 +02:00
chore: Rename master to main
This commit is contained in:
@@ -7,7 +7,7 @@ repository:
|
||||
has_projects: false
|
||||
has_wiki: true
|
||||
has_downloads: true
|
||||
default_branch: master
|
||||
default_branch: main
|
||||
|
||||
# Preference: people do clean commits
|
||||
allow_merge_commit: true
|
||||
@@ -46,7 +46,7 @@ labels:
|
||||
# See https://github.com/repository-settings/app/issues/825
|
||||
#
|
||||
# branches:
|
||||
# - name: master
|
||||
# - name: main
|
||||
# protection:
|
||||
# required_pull_request_reviews: null
|
||||
# required_conversation_resolution: true
|
||||
|
||||
@@ -7,7 +7,7 @@ on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
|
||||
@@ -7,7 +7,7 @@ on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
- "!varcon*"
|
||||
|
||||
@@ -5,7 +5,7 @@ permissions: {} # none
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [master]
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
@@ -22,16 +22,8 @@ jobs:
|
||||
contents: read
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
<<<<<<< HEAD
|
||||
- uses: actions/checkout@v6
|
||||
- uses: j178/prek-action@v2
|
||||
||||||| e4f2b351
|
||||
- uses: actions/checkout@v6
|
||||
- uses: j178/prek-action@v1
|
||||
=======
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
>>>>>>> _rust/main
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: prek
|
||||
|
||||
+2
-2
@@ -116,10 +116,10 @@ When we're ready to release, a project owner should do the following
|
||||
- Update the dependency version in `src/lib.rs`
|
||||
- Update the dependency version in `README.md`
|
||||
- Tag the commit via `git tag -am "v<X>.<Y>.<Z>" v<X>.<Y>.<Z>`
|
||||
- `git push upstream master --tag v<X>.<Y>.<Z>`
|
||||
- `git push upstream main --tag v<X>.<Y>.<Z>`
|
||||
- Run `cargo publish` (run `cargo login` first if needed)
|
||||
|
||||
[issues]: https://github.com/crate-ci/typos/issues
|
||||
[new issue]: https://github.com/crate-ci/typos/issues/new
|
||||
[all issues]: https://github.com/crate-ci/typos/issues?utf8=%E2%9C%93&q=is%3Aissue
|
||||
[CI]: https://github.com/crate-ci/typos/tree/master/.github/workflows
|
||||
[CI]: https://github.com/crate-ci/typos/tree/main/.github/workflows
|
||||
|
||||
@@ -6,12 +6,12 @@ Finds and corrects spelling mistakes among source code:
|
||||
- Fast enough to run on monorepos
|
||||
- Low false positives so you can run on PRs
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
[](https://github.com/crate-ci/typos/releases)
|
||||
[](https://codecov.io/gh/crate-ci/typos)
|
||||
[][Documentation]
|
||||
[](https://codecov.io/gh/crate-ci/typos)
|
||||
[][Documentation]
|
||||

|
||||
[][Crates.io]
|
||||
|
||||
@@ -23,16 +23,16 @@ Dual-licensed under [MIT](LICENSE-MIT) or [Apache 2.0](LICENSE-APACHE)
|
||||
- [Getting Started](#getting-started)
|
||||
- [False Positives](#false-positives)
|
||||
- [Integrations](#integrations)
|
||||
- [GitHub Action](https://github.com/crate-ci/typos/blob/master/docs/github-action.md)
|
||||
- [pre-commit](https://github.com/crate-ci/typos/blob/master/docs/pre-commit.md)
|
||||
- [GitHub Action](https://github.com/crate-ci/typos/blob/main/docs/github-action.md)
|
||||
- [pre-commit](https://github.com/crate-ci/typos/blob/main/docs/pre-commit.md)
|
||||
- [Custom](#custom)
|
||||
- [Debugging](#debugging)
|
||||
- [Reference](https://github.com/crate-ci/typos/blob/master/docs/reference.md)
|
||||
- [Reference](https://github.com/crate-ci/typos/blob/main/docs/reference.md)
|
||||
- [FAQ](#faq)
|
||||
- [Comparison with other spell checkers](https://github.com/crate-ci/typos/blob/master/docs/comparison.md)
|
||||
- [Comparison with other spell checkers](https://github.com/crate-ci/typos/blob/main/docs/comparison.md)
|
||||
- [Projects using typos](https://github.com/crate-ci/typos/wiki)
|
||||
- [Benchmarks](benchsuite/runs)
|
||||
- [Design](https://github.com/crate-ci/typos/blob/master/docs/design.md)
|
||||
- [Design](https://github.com/crate-ci/typos/blob/main/docs/design.md)
|
||||
- [Contribute](CONTRIBUTING.md)
|
||||
- [CHANGELOG](CHANGELOG.md)
|
||||
|
||||
@@ -79,7 +79,7 @@ If there is any ambiguity (multiple possible corrections), `typos` will just rep
|
||||
|
||||
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`](https://github.com/crate-ci/typos/blob/master/docs/reference.md) by declaring itself as the valid spelling:
|
||||
To mark a word or an identifier (grouping of words) as valid, add it to your [`_typos.toml`](https://github.com/crate-ci/typos/blob/main/docs/reference.md) by declaring itself as the valid spelling:
|
||||
```toml
|
||||
[default]
|
||||
extend-ignore-identifiers-re = [
|
||||
@@ -95,7 +95,7 @@ AttributeIDSupressMenu = "AttributeIDSupressMenu"
|
||||
# Don't correct the surname "Teh"
|
||||
teh = "teh"
|
||||
```
|
||||
For more ways to ignore or extend the dictionary with examples, see the [config reference](https://github.com/crate-ci/typos/blob/master/docs/reference.md).
|
||||
For more ways to ignore or extend the dictionary with examples, see the [config reference](https://github.com/crate-ci/typos/blob/main/docs/reference.md).
|
||||
|
||||
For cases like localized content, you can disable spell checking of file contents while still checking the file name:
|
||||
```toml
|
||||
@@ -113,8 +113,8 @@ extend-exclude = ["localized/*.po"]
|
||||
|
||||
### Integrations
|
||||
|
||||
- [GitHub Actions](https://github.com/crate-ci/typos/blob/master/docs/github-action.md)
|
||||
- [pre-commit](https://github.com/crate-ci/typos/blob/master/docs/pre-commit.md)
|
||||
- [GitHub Actions](https://github.com/crate-ci/typos/blob/main/docs/github-action.md)
|
||||
- [pre-commit](https://github.com/crate-ci/typos/blob/main/docs/pre-commit.md)
|
||||
- [🐊Putout Processor](https://github.com/putoutjs/putout-processor-typos)
|
||||
- [Visual Studio Code](https://github.com/tekumara/typos-vscode)
|
||||
- [typos-lsp (Language Server Protocol server)](https://github.com/tekumara/typos-vscode)
|
||||
@@ -182,7 +182,7 @@ 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](https://github.com/crate-ci/typos/blob/master/docs/design.md).
|
||||
For more on the trade offs of these approaches, see [Design](https://github.com/crate-ci/typos/blob/main/docs/design.md).
|
||||
|
||||
- To correct it locally, see also our [False Positives documentation](#false-positives).
|
||||
- To contribute your correction, see [Contribute](CONTRIBUTING.md)
|
||||
|
||||
@@ -26,7 +26,7 @@ classifiers = [
|
||||
[project.urls]
|
||||
Repository = "https://github.com/crate-ci/typos"
|
||||
Documentation = "https://github.com/crate-ci/typos#typos"
|
||||
Changelog = "https://github.com/crate-ci/typos/blob/master/CHANGELOG.md"
|
||||
Changelog = "https://github.com/crate-ci/typos/blob/main/CHANGELOG.md"
|
||||
Releases = "https://github.com/crate-ci/typos/releases"
|
||||
|
||||
[tool.maturin]
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
allow-branch = ["master"]
|
||||
allow-branch = ["main"]
|
||||
|
||||
Reference in New Issue
Block a user