Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5bea668

Browse files
Merge pull request #62 from epage/typos
chore(ci): Verify more things
2 parents 7fe7ce9 + e4e731c commit 5bea668

File tree

7 files changed

+100
-3
lines changed

7 files changed

+100
-3
lines changed

‎.github/workflows/committed.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Not run as part of pre-commit checks because they don't handle sending the correct commit
2+
# range to `committed`
3+
name: Lint Commits
4+
on: [pull_request]
5+
6+
permissions:
7+
contents: read
8+
9+
env:
10+
RUST_BACKTRACE: 1
11+
CARGO_TERM_COLOR: always
12+
CLICOLOR: 1
13+
14+
jobs:
15+
committed:
16+
name: Lint Commits
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout Actions Repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Lint Commits
24+
uses: crate-ci/committed@master

‎.github/workflows/pre-commit.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: pre-commit
2+
3+
permissions: {} # none
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches: [main]
9+
10+
env:
11+
RUST_BACKTRACE: 1
12+
CARGO_TERM_COLOR: always
13+
CLICOLOR: 1
14+
15+
jobs:
16+
pre-commit:
17+
permissions:
18+
contents: read
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-python@v4
23+
- uses: pre-commit/action@v3.0.0

‎.github/workflows/spelling.yml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Spelling
2+
3+
permissions:
4+
contents: read
5+
6+
on: [pull_request]
7+
8+
env:
9+
RUST_BACKTRACE: 1
10+
CARGO_TERM_COLOR: always
11+
CLICOLOR: 1
12+
13+
jobs:
14+
spelling:
15+
name: Spell Check with Typos
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Actions Repository
19+
uses: actions/checkout@v4
20+
- name: Spell Check Repo
21+
uses: crate-ci/typos@master

‎.pre-commit-config.yaml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: check-yaml
6+
stages: [commit]
7+
- id: check-json
8+
stages: [commit]
9+
- id: check-toml
10+
stages: [commit]
11+
- id: check-merge-conflict
12+
stages: [commit]
13+
- id: check-case-conflict
14+
stages: [commit]
15+
- id: detect-private-key
16+
stages: [commit]
17+
- repo: https://github.com/crate-ci/typos
18+
rev: v1.16.20
19+
hooks:
20+
- id: typos
21+
stages: [commit]
22+
- repo: https://github.com/crate-ci/committed
23+
rev: v1.0.20
24+
hooks:
25+
- id: committed
26+
stages: [commit-msg]

‎committed.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
style="conventional"
2+
ignore_author_re="(dependabot|renovate)"
3+
merge_commit = false

‎src/display_list/structs.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ pub enum DisplayRawLine<'a> {
225225
source_aligned: bool,
226226
/// If set to `true`, only the label of the `Annotation` will be
227227
/// displayed. It allows for a multiline annotation to be aligned
228-
/// without displaing the meta information (`type` and `id`) to be
228+
/// without displaying the meta information (`type` and `id`) to be
229229
/// displayed on each line.
230230
continuation: bool,
231231
},
@@ -283,7 +283,7 @@ pub enum DisplayMarkType {
283283
/// There are several ways to uses this information when formatting the `DisplayList`:
284284
///
285285
/// * An annotation may display the name of the type like `error` or `info`.
286-
/// * An underline for `Error` may be `^^^` while for `Warning` it coule be `---`.
286+
/// * An underline for `Error` may be `^^^` while for `Warning` it could be `---`.
287287
/// * `ColorStylesheet` may use different colors for different annotations.
288288
#[derive(Debug, Clone, PartialEq)]
289289
pub enum DisplayAnnotationType {

‎tests/formatter.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ fn test_raw_origin_initial_pos_anon_lines() {
513513
header_type: DisplayHeaderType::Initial,
514514
})]);
515515

516-
// Using anonymized_line_numbers should not affect the inital position
516+
// Using anonymized_line_numbers should not affect the initial position
517517
dl.anonymized_line_numbers = true;
518518
assert_eq!(dl.to_string(), "--> src/test.rs:23:15");
519519
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /