Skip to content

Commit 8162b2a

Browse files
committed
chore: Add pre-commit hooks
1 parent 3a52132 commit 8162b2a

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Cargo.lock
99
# These are backup files generated by rustfmt
1010
**/*.rs.bk
1111

12-
.idea
12+
.idea

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
default_language_version:
2+
python: python3.7
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v2.5.0
7+
hooks:
8+
- id: check-yaml
9+
- id: end-of-file-fixer
10+
- id: trailing-whitespace
11+
exclude: ^.*\.(md|rst)$
12+
- id: mixed-line-ending
13+
args: [--fix=lf]
14+
- id: check-merge-conflict
15+
16+
- repo: https://github.com/jorisroovers/gitlint
17+
rev: v0.13.1
18+
hooks:
19+
- id: gitlint
20+
21+
- repo: https://github.com/adrienverge/yamllint
22+
rev: v1.21.0
23+
hooks:
24+
- id: yamllint
25+
26+
- repo: https://github.com/doublify/pre-commit-rust
27+
rev: master
28+
hooks:
29+
- id: fmt
30+
- id: cargo-check
31+
- id: clippy

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ edition = "2018"
88

99
[dependencies]
1010
cssparser = "*"
11-
kuchiki = "0.8"
11+
kuchiki = "0.8"

0 commit comments

Comments
 (0)