-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
84 lines (77 loc) · 2.3 KB
/
.pre-commit-config.yaml
File metadata and controls
84 lines (77 loc) · 2.3 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
repos:
# mypy linter for Python files
- repo: local
hooks:
- id: mypy
name: mypy
description: 'Run mypy for static type checking'
entry: mypy
language: python
types_or: [python, pyi]
require_serial: true
args:
- --disable-error-code
- no-any-return
- --disable-error-code
- arg-type
# try generating the libdoc documentation
- repo: local
hooks:
- id: libdoc
name: libdoc
entry: libdoc src/Tables results/keyword_docs.html
language: system
require_serial: true
pass_filenames: false
# Ruff linter for Python files
- repo: local
hooks:
- id: ruff
name: ruff
description: "Run 'ruff' for extremely fast Python linting"
entry: ruff check --force-exclude
language: python
types_or: [python, pyi, jupyter]
require_serial: true
- id: ruff-format
name: ruff-format
description: "Run 'ruff format' for extremely fast Python formatting"
entry: ruff format --force-exclude
language: python
types_or: [python, pyi, jupyter]
require_serial: true
# Robocop formatter and linter for Robot Framework (.robot and .resource files)
- repo: local
hooks:
# - id: robocop-format
# name: robocop-format
# description: "Run 'robocop format' for RobotFramework source code formatting"
# entry: robocop format
# files: \.(robot|resource)$
# language: python
# require_serial: true
- id: robocop
name: robocop
description: "Run 'robocop check' for RobotFramework source code linting"
entry: robocop check
files: \.(robot|resource)$
language: python
require_serial: true
# AddChanginging max lenght for atest names from 20 -> 40
args:
- --configure
- LEN04.max_len=40
- repo: local
hooks:
- id: acceptance-tests
name: Acceptance Tests via hatch
entry: hatch run dev:atest
language: system
types: []
pass_filenames: false
- id: unit-tests
name: Unit Tests via hatch
entry: hatch run dev:utest
language: system
types: []
pass_filenames: false