File tree Expand file tree Collapse file tree 7 files changed +100
-3
lines changed Expand file tree Collapse file tree 7 files changed +100
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change 1+ style =" conventional"
2+ ignore_author_re =" (dependabot|renovate)"
3+ merge_commit = false
Original file line number Diff line number Diff 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 ) ]
289289pub enum DisplayAnnotationType {
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments