-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
47 lines (45 loc) · 1.19 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
default_stages: [push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: black
name: "Python: Black formatter"
entry: poetry run black --check
language: system
types: [python]
- id: flake8
name: "Python: Flake8 linter"
entry: poetry run flake8
language: system
types: [python]
- id: isort
name: "Python: isort formatter"
entry: poetry run isort -rc -c
language: system
types: [python]
- id: mypy
name: "Python: mypy linter"
entry: poetry run mypy --config-file mypy.ini
language: system
types: [python]
- id: darglint
name: "Python: darglint linter"
entry: poetry run darglint
language: system
types: [python]
- repo: https://github.com/doublify/pre-commit-rust
rev: master
hooks:
- id: fmt
name: "Rust: fmt"
- id: cargo-check
name: "Rust: check"
- id: clippy
name: "Rust: clippy"