Skip to content

Commit

Permalink
Format sample config output (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 authored Feb 11, 2025
1 parent 58c4d62 commit 2f500ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/cli/sample_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ static SAMPLE_CONFIG: &str = "\
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
";

#[allow(clippy::print_stdout)]
Expand Down
10 changes: 5 additions & 5 deletions tests/sample_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ fn sample_config() {
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
----- stderr -----
"##);
Expand Down

0 comments on commit 2f500ed

Please sign in to comment.