-
Notifications
You must be signed in to change notification settings - Fork 9
/
.pre-commit-config.yaml
58 lines (51 loc) · 1.33 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
48
49
50
51
52
53
54
55
56
57
58
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: bash -c 'cd $(git rev-parse --show-toplevel)/tauri/src-tauri && cargo fmt -- '
language: system
files: \.rs$
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.1.1
hooks:
- id: black
name: black
entry: black
language: python
require_serial: true
types_or: [python, pyi]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
name: isort
entry: isort
require_serial: true
language: python
types_or: [cython, pyi, python]
args: ['--filter-files']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
hooks:
- id: ruff
entry: ruff check
args: [ --fix ]
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
name: flake8
entry: flake8
- repo: local
hooks:
- id: include-webapp-in-requirements
name: poetry-export (webapp)
entry: .github/hooks/include_webapp_in_requirements.sh
language: script
files: ^(requirements.txt|poetry.lock)$