Skip to content

Commit

Permalink
feat: pre commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack committed May 2, 2024
1 parent cdbeb26 commit 2f66047
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
fail_fast: true

exclude: |
(?x)^(
)$
repos:
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
additional_dependencies:
- mdformat-mkdocs
- mdformat-admon
exclude: |
(?x)^(
docs/formatter/black\.md
| docs/\w+\.md
)$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint-fix
exclude: |
(?x)^(
docs/formatter/black\.md
| docs/\w+\.md
)$
- repo: https://github.com/crate-ci/typos
rev: v1.20.8
hooks:
- id: typos

- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --
language: system
types: [rust]
pass_filenames: false # This makes it a lot faster

0 comments on commit 2f66047

Please sign in to comment.