-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.pre-commit-config.yaml
executable file
·90 lines (84 loc) · 2.68 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
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
85
86
87
88
89
90
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.8
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.3
hooks:
- id: pycln
args: [ --all ]
language_version: python3.8
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: ["--py38", "--keep-runtime-typing"]
language_version: python3.8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
language_version: python3.8
- id: end-of-file-fixer
language_version: python3.8
exclude: ^.idea/ # PyCharm would automatically remove end of lines and this was re-adding them
- id: check-merge-conflict
language_version: python3.8
- id: check-yaml
exclude: ^(.clang-format)$
args: [--unsafe]
language_version: python3.8
- id: check-ast
language_version: python3.8
- id: debug-statements
language_version: python3.8
- id: check-docstring-first
language_version: python3.8
- id: check-xml
language_version: python3.8
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--filter-files", "--resolve-all-configs"]
language_version: python3.8
- repo: https://github.com/myint/docformatter
rev: v1.5.1
hooks:
- id: docformatter
args: [ --in-place,
"--wrap-summaries", "120",
"--wrap-descriptions", "120" ]
language_version: python3.8
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.245'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
language_version: python3.8
# need to specify node version to run correctly on Ubuntu 18
# https://github.com/scverse/cookiecutter-scverse/issues/143
- repo: https://github.com/tier4/pre-commit-hooks-ros
rev: v0.8.0
hooks:
- id: prettier-xacro
language: node
language_version: 16.19.0
- id: prettier-launch-xml
language: node
language_version: 16.19.0
- id: prettier-package-xml
language: node
language_version: 16.19.0
- id: ros-include-guard
language_version: python3.8
- id: sort-package-xml
language_version: python3.8