forked from odoo/upgrade-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (33 loc) · 990 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
repos:
- repo: local
hooks:
- id: compile23
name: Compile python files using the expected runtime version
entry: ./tools/compile23.py
language: script
- id: bad-import-000
name: Incompatible import with old versions in tests and `0.0.0` scripts
language: pygrep
entry: '(from|import) odoo.upgrade\b'
files: '^src/\w+/(tests|0\.0\.0)/.*\.py$'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
hooks:
- id: ruff
name: Check code with Ruff, apply automatic fixes
args: [ --exit-non-zero-on-fix ]
- id: ruff-format
name: Format code with Ruff
- repo: https://github.com/crate-ci/typos
rev: v1.29.4
hooks:
- id: typos
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-symlinks
- id: debug-statements