forked from acquire-project/acquire-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (37 loc) · 961 Bytes
/
.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
repos:
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
pass_filenames: true
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies: [ flake8-typing-imports ]
pass_filenames: true
exclude: __init__.py
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
hooks:
- id: pyupgrade
args: [ "--py38-plus", "--keep-runtime-typing" ]
- repo: https://github.com/seddonym/import-linter
rev: v1.2.7
hooks:
- id: import-linter
stages: [ manual ]
- repo: local
hooks:
- id: ruff
name: Lint Python files
entry: python -m ruff check .
language: system
types: [ file ]
files: \.py$
- id: cargo-fmt
name: Format Rust files
entry: cargo fmt --all -- --check
language: system
types: [ file ]
files: \.rs$