Debian Codegraph @

ansible_collections/cisco/nxos/.pre-commit-config.yaml

raw
1 ---
2 ci:
3 # format compatible with commitlint
4 autoupdate_commit_msg: "chore: pre-commit autoupdate"
5 autoupdate_schedule: monthly
6 autofix_commit_msg: "chore: auto fixes from pre-commit.com hooks"
7
8 repos:
9 # not a permanent fix, but to hardcode ansible-core 2.16 as repo dependecy
10 - repo: https://github.com/ansible-network/collection_prep
11 rev: da78082ea59b03ad16cd7dbee267f53e8ff50bb5
12 hooks:
13 - id: update-docs
14
15 - repo: https://github.com/pre-commit/pre-commit-hooks
16 rev: v6.0.0
17 hooks:
18 - id: check-merge-conflict
19 - id: check-symlinks
20 - id: debug-statements
21 - id: end-of-file-fixer
22 - id: no-commit-to-branch
23 args: [--branch, main]
24 - id: trailing-whitespace
25
26 - repo: https://github.com/asottile/add-trailing-comma
27 rev: v4.0.0
28 hooks:
29 - id: add-trailing-comma
30
31 - repo: https://github.com/pre-commit/mirrors-prettier
32 rev: "v4.0.0-alpha.8"
33 hooks:
34 - id: prettier
35 entry: env CI=1 bash -c "prettier --list-different . || ec=$? && prettier --loglevel=error --write . && exit $ec"
36 pass_filenames: false
37 args: []
38 additional_dependencies:
39 - prettier
40 - prettier-plugin-toml
41
42 - repo: https://github.com/PyCQA/isort
43 rev: 7.0.0
44 hooks:
45 - id: isort
46 name: Sort import statements using isort
47 args: ["--filter-files"]
48
49 - repo: https://github.com/psf/black-pre-commit-mirror
50 rev: 25.9.0
51 hooks:
52 - id: black
53
54 - repo: https://github.com/pycqa/flake8
55 rev: 7.3.0
56 hooks:
57 - id: flake8