-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.25 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
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- id: fix-encoding-pragma
args: ["--remove"]
- repo: https://github.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
language_version: python3.8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.961'
hooks:
- id: mypy
args: [--config-file, mypy.ini, --strict]
additional_dependencies: [pytest==7.1.2]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- repo: local
hooks:
- id: cargo-fmt
name: format rust code
language: system
# keep in sync with Cargo.toml. There is no way to run cargo fmt for specific files
# https://github.com/rust-lang/rustfmt/issues/4485
entry: rustfmt --edition 2021
files: ^rust-arroyo/.*\.rs$
default_language_version:
python: python3.8