2021-03-31 17:43:38 +00:00
|
|
|
---
|
|
|
|
repos:
|
2023-03-29 22:18:57 +00:00
|
|
|
- repo: https://github.com/ansible-network/collection_prep
|
2023-04-04 19:01:29 +00:00
|
|
|
rev: 1.1.1
|
2023-03-29 22:18:57 +00:00
|
|
|
hooks:
|
2023-05-16 09:41:24 +00:00
|
|
|
# - id: autoversion # removed as being handled by GHA push and release drafter
|
2023-03-29 22:18:57 +00:00
|
|
|
- id: update-docs
|
|
|
|
|
2021-03-31 17:43:38 +00:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-10-09 09:50:57 +00:00
|
|
|
rev: v5.0.0
|
2021-03-31 17:43:38 +00:00
|
|
|
hooks:
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: debug-statements
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: no-commit-to-branch
|
|
|
|
- id: trailing-whitespace
|
2022-05-26 14:02:52 +00:00
|
|
|
|
2022-06-01 12:35:10 +00:00
|
|
|
- repo: https://github.com/asottile/add-trailing-comma
|
2023-11-24 06:44:31 +00:00
|
|
|
rev: v3.1.0
|
2022-06-01 12:35:10 +00:00
|
|
|
hooks:
|
|
|
|
- id: add-trailing-comma
|
|
|
|
|
2022-05-26 14:02:52 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2024-01-02 11:44:45 +00:00
|
|
|
rev: "v4.0.0-alpha.8"
|
2022-05-26 14:02:52 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
additional_dependencies:
|
|
|
|
- prettier
|
|
|
|
- prettier-plugin-toml
|
|
|
|
|
2022-05-26 17:18:57 +00:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
2025-02-05 09:43:39 +00:00
|
|
|
rev: 6.0.0
|
2022-05-26 17:18:57 +00:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
name: Sort import statements using isort
|
2023-03-29 22:18:57 +00:00
|
|
|
args: ["--filter-files"]
|
2022-05-26 17:18:57 +00:00
|
|
|
|
2021-03-31 17:43:38 +00:00
|
|
|
- repo: https://github.com/psf/black
|
2025-02-05 09:43:39 +00:00
|
|
|
rev: 25.1.0
|
2021-03-31 17:43:38 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2024-03-28 13:59:13 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
2025-02-26 09:15:37 +00:00
|
|
|
rev: 7.1.2
|
2024-03-28 13:59:13 +00:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|