File: .pre-commit-config.yaml

package info (click to toggle)
patch-hub 0.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,616 kB
  • sloc: xml: 142; makefile: 33
file content (23 lines) | stat: -rw-r--r-- 606 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
repos:
  - repo: local
    hooks:
      # Formatter
      - id: rustfmt
        name: rustfmt
        language: rust
        entry: cargo fmt
        args: ["--all"]
        types: [rust]
        pass_filenames: false
      # Linter
      - id: clippy
        name: clippy
        language: rust
        entry: cargo clippy
        args: [
          "--all-features", "--all-targets", "--tests",
          "--", "--allow=clippy::too-many-arguments", "--deny=warnings",
          "--deny=clippy::map_unwrap_or", "--deny=unconditional_recursion"
        ]
        types: [rust]
        pass_filenames: false