forked from d-biehl/robot_uv_libtest
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
77 lines (75 loc) · 2.02 KB
/
.pre-commit-config.yaml
File metadata and controls
77 lines (75 loc) · 2.02 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
repos:
# Python Dependencies
- repo: https://github.com/astral-sh/uv-pre-commit
rev: "0.6.17"
hooks:
- id: uv-lock
# Python Code Quality
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.7"
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/jendrikseipp/vulture
rev: "v2.14"
hooks:
- id: vulture
- repo: https://github.com/fpgmaas/deptry
rev: "0.23.0"
hooks:
- id: deptry
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.15.0"
hooks:
- id: mypy
# Robot Framework Code Quality
- repo: https://github.com/MarketSquare/robotframework-robocop
# https://robocop.readthedocs.io/en/stable/integrations.html#pre-commit
rev: "v6.0.0"
hooks:
- id: robocop-format
# Other Pre Commit Hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: check-json
exclude: ^.devcontainer/devcontainer.json
- id: detect-private-key
- id: end-of-file-fixer
- id: name-tests-test
- id: pretty-format-json
exclude: ^.devcontainer/devcontainer.json
args: [--autofix, --no-sort-keys]
- id: trailing-whitespace
# https://stackoverflow.com/questions/70778806/pre-commit-not-using-virtual-environment
# Python Tests
- repo: local
hooks:
- id: pytest
name: pytest Tests
entry: pytest
language: system
pass_filenames: false
# Robot Framework Lint and Tests
- repo: local
hooks:
- id: robot-framework-analyzation
name: Robot Framework Analyzation
entry: robotcode
language: system
pass_filenames: false
args:
- analyze
- repo: local
hooks:
- id: robot-framework-tests
name: Robot Framework Tests
entry: robotcode
language: system
pass_filenames: false
args:
- robot