diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cdd8121..4946ab8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,10 +2,15 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks sha: v1.1.1 hooks: + - id: check-byte-order-marker + - id: check-case-conflict + - id: check-merge-conflict + - id: check-symlinks - id: check-yaml - id: end-of-file-fixer + - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/pre-commit/pre-commit - sha: v1.3.0 + sha: v1.4.1 hooks: - id: validate_manifest diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 2a4a272..bbcf490 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,7 +1,7 @@ - id: fmt name: fmt description: Format files with rustfmt. - entry: rustfmt + entry: cargo fmt language: system files: \.rs$ args: ['--write-mode=overwrite'] diff --git a/hooks.yaml b/hooks.yaml index 2a4a272..bbcf490 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -1,7 +1,7 @@ - id: fmt name: fmt description: Format files with rustfmt. - entry: rustfmt + entry: cargo fmt language: system files: \.rs$ args: ['--write-mode=overwrite']