diff options
| author | omnom62 <omnom62@outlook.com> | 2026-03-20 21:50:13 +1000 |
|---|---|---|
| committer | omnom62 <omnom62@outlook.com> | 2026-03-20 21:50:13 +1000 |
| commit | 7599ba96bc3b659cb2a5f00b1be46ab6f55f48a6 (patch) | |
| tree | 35b39a126fe94f8917352aa2c229d3022d1223e4 /.pre-commit-config.yaml | |
| parent | 9dc03bb92e08455812e0969505495309456a4bfb (diff) | |
| download | rest.vyos-7599ba96bc3b659cb2a5f00b1be46ab6f55f48a6.tar.gz rest.vyos-7599ba96bc3b659cb2a5f00b1be46ab6f55f48a6.zip | |
precommit changes
Diffstat (limited to '.pre-commit-config.yaml')
| -rw-r--r-- | .pre-commit-config.yaml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e46c2da --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,58 @@ +--- +ci: + # format compatible with commitlint + autoupdate_commit_msg: "chore: pre-commit autoupdate" + autoupdate_schedule: monthly + autofix_commit_msg: "chore: auto fixes from pre-commit.com hooks" + +repos: + # - repo: https://github.com/ansible-network/collection_prep + # rev: 1.1.2 + # hooks: + # - id: update-docs + # additional_dependencies: + # - "ansible-core==2.18.*" + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: check-merge-conflict + - id: check-symlinks + - id: debug-statements + - id: end-of-file-fixer + - id: no-commit-to-branch + args: [--branch, main] + - id: trailing-whitespace + + - repo: https://github.com/asottile/add-trailing-comma + rev: v3.1.0 + hooks: + - id: add-trailing-comma + + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v4.0.0-alpha.8 + hooks: + - id: prettier + entry: env CI=1 bash -c "prettier --list-different . || ec=$? && prettier --loglevel=error --write . && exit $ec" + pass_filenames: false + args: [] + additional_dependencies: + - prettier + - prettier-plugin-toml + + - repo: https://github.com/PyCQA/isort + rev: 6.0.0 + hooks: + - id: isort + name: Sort import statements using isort + args: [--filter-files] + + - repo: https://github.com/psf/black + rev: 25.1.0 + hooks: + - id: black + + - repo: https://github.com/pycqa/flake8 + rev: 7.1.2 + hooks: + - id: flake8 |
