mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 02:21:46 +04:00
Fix yamllint recommendations
This commit is contained in:
parent
9cbfcde81a
commit
346d5c0de7
35 changed files with 312 additions and 238 deletions
2
.github/FUNDING.yml
vendored
2
.github/FUNDING.yml
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
|
---
|
||||||
|
|
||||||
github: asottile
|
github: asottile
|
||||||
open_collective: pre-commit
|
open_collective: pre-commit
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: validate_manifest
|
- id: validate_manifest
|
||||||
name: Validate Pre-Commit Manifest
|
name: Validate Pre-Commit Manifest
|
||||||
description: This validator validates a pre-commit hooks manifest file
|
description: This validator validates a pre-commit hooks manifest file
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branches:
|
branches:
|
||||||
include: [master, test-me-*]
|
include: [master, test-me-*]
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
channels:
|
channels:
|
||||||
- conda-forge
|
- conda-forge
|
||||||
- defaults
|
- defaults
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: hook
|
- id: hook
|
||||||
name: hook
|
name: hook
|
||||||
entry: ./hook.sh
|
entry: ./hook.sh
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: arg-per-line
|
- id: arg-per-line
|
||||||
name: Args per line hook
|
name: Args per line hook
|
||||||
entry: bin/hook.sh
|
entry: bin/hook.sh
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: sys-exec
|
- id: sys-exec
|
||||||
name: sys-exec
|
name: sys-exec
|
||||||
entry: python -c 'import os; import sys; print(sys.executable.split(os.path.sep)[-2]) if os.name == "nt" else print(sys.executable.split(os.path.sep)[-3])'
|
entry: python -c 'import os; import sys; print(sys.executable.split(os.path.sep)[-2]) if os.name == "nt" else print(sys.executable.split(os.path.sep)[-3])'
|
||||||
language: conda
|
language: conda
|
||||||
files: \.py$
|
files: \.py$
|
||||||
|
|
||||||
- id: additional-deps
|
- id: additional-deps
|
||||||
name: additional-deps
|
name: additional-deps
|
||||||
entry: python
|
entry: python
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
channels:
|
channels:
|
||||||
- conda-forge
|
- conda-forge
|
||||||
- defaults
|
- defaults
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: echo-java
|
- id: echo-java
|
||||||
name: echo-java
|
name: echo-java
|
||||||
description: echo from java
|
description: echo from java
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: docker-hook
|
- id: docker-hook
|
||||||
name: Docker test hook
|
name: Docker test hook
|
||||||
entry: echo
|
entry: echo
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: echo-entrypoint
|
- id: echo-entrypoint
|
||||||
name: echo (via --entrypoint)
|
name: echo (via --entrypoint)
|
||||||
language: docker_image
|
language: docker_image
|
||||||
entry: --entrypoint echo cogniteev/echo
|
entry: --entrypoint echo cogniteev/echo
|
||||||
|
|
||||||
- id: echo-cmd
|
- id: echo-cmd
|
||||||
name: echo (via cmd)
|
name: echo (via cmd)
|
||||||
language: docker_image
|
lguage: docker_image
|
||||||
entry: cogniteev/echo echo
|
entry: cogniteev/echo echo
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: dotnet example hook
|
- id: dotnet example hook
|
||||||
name: dotnet example hook
|
name: dotnet example hook
|
||||||
entry: testeroni
|
entry: testeroni
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: dotnet example hook
|
- id: dotnet example hook
|
||||||
name: dotnet example hook
|
name: dotnet example hook
|
||||||
entry: testeroni
|
entry: testeroni
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: python-files
|
- id: python-files
|
||||||
name: Python files
|
name: Python files
|
||||||
entry: bin/hook.sh
|
entry: bin/hook.sh
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: failing_hook
|
- id: failing_hook
|
||||||
name: Failing hook
|
name: Failing hook
|
||||||
entry: bin/hook.sh
|
entry: bin/hook.sh
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: golang-hook
|
- id: golang-hook
|
||||||
name: golang example hook
|
name: golang example hook
|
||||||
entry: golang-hello-world
|
entry: golang-hello-world
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: logfile test hook
|
- id: logfile test hook
|
||||||
name: Logfile test hook
|
name: Logfile test hook
|
||||||
entry: bin/hook.sh
|
entry: bin/hook.sh
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,17 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: bash_hook
|
- id: bash_hook
|
||||||
name: Bash hook
|
name: Bash hook
|
||||||
entry: bin/hook.sh
|
entry: bin/hook.sh
|
||||||
language: script
|
language: script
|
||||||
files: 'foo.py'
|
files: 'foo.py'
|
||||||
|
|
||||||
- id: bash_hook2
|
- id: bash_hook2
|
||||||
name: Bash hook
|
name: Bash hook
|
||||||
entry: bin/hook2.sh
|
entry: bin/hook2.sh
|
||||||
language: script
|
language: script
|
||||||
files: ''
|
files: ''
|
||||||
|
|
||||||
- id: bash_hook3
|
- id: bash_hook3
|
||||||
name: Bash hook
|
name: Bash hook
|
||||||
entry: bin/hook3.sh
|
entry: bin/hook3.sh
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: foo
|
- id: foo
|
||||||
name: Foo
|
name: Foo
|
||||||
entry: foo
|
entry: foo
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: versioned-node-hook
|
- id: versioned-node-hook
|
||||||
name: Versioned node hook
|
name: Versioned node hook
|
||||||
entry: versioned-node-hook
|
entry: versioned-node-hook
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: not-found-exe
|
- id: not-found-exe
|
||||||
name: Not found exe
|
name: Not found exe
|
||||||
entry: i-dont-exist-lol
|
entry: i-dont-exist-lol
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: perl-hook
|
- id: perl-hook
|
||||||
name: perl example hook
|
name: perl example hook
|
||||||
entry: pre-commit-perl-hello
|
entry: pre-commit-perl-hello
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: prints_cwd
|
- id: prints_cwd
|
||||||
name: Prints Cwd
|
name: Prints Cwd
|
||||||
entry: pwd
|
entry: pwd
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: python3-hook
|
- id: python3-hook
|
||||||
name: Python 3 Hook
|
name: Python 3 Hook
|
||||||
entry: python3-hook
|
entry: python3-hook
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: foo
|
- id: foo
|
||||||
name: Foo
|
name: Foo
|
||||||
entry: foo
|
entry: foo
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: foo
|
- id: foo
|
||||||
name: Foo
|
name: Foo
|
||||||
entry: foo
|
entry: foo
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: ruby_hook
|
- id: ruby_hook
|
||||||
name: Ruby Hook
|
name: Ruby Hook
|
||||||
entry: ruby_hook
|
entry: ruby_hook
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: ruby_hook
|
- id: ruby_hook
|
||||||
name: Ruby Hook
|
name: Ruby Hook
|
||||||
entry: ruby_hook
|
entry: ruby_hook
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: rust-hook
|
- id: rust-hook
|
||||||
name: rust example hook
|
name: rust example hook
|
||||||
entry: rust-hello-world
|
entry: rust-hello-world
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: bash_hook
|
- id: bash_hook
|
||||||
name: Bash hook
|
name: Bash hook
|
||||||
entry: bin/hook.sh
|
entry: bin/hook.sh
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: stdout-stderr
|
- id: stdout-stderr
|
||||||
name: stdout-stderr
|
name: stdout-stderr
|
||||||
language: script
|
language: script
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: swift-hooks-repo
|
- id: swift-hooks-repo
|
||||||
name: Swift hooks repo example
|
name: Swift hooks repo example
|
||||||
description: Runs the hello world app generated by swift package init --type executable (binary called swift_hooks_repo here)
|
description: Runs the hello world app generated by swift package init --type executable (binary called swift_hooks_repo here)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: system-hook-with-spaces
|
- id: system-hook-with-spaces
|
||||||
name: System hook with spaces
|
name: System hook with spaces
|
||||||
entry: bash -c 'echo "Hello World"'
|
entry: bash -c 'echo "Hello World"'
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: python-cython-files
|
- id: python-cython-files
|
||||||
name: Python and Cython files
|
name: Python and Cython files
|
||||||
entry: bin/hook.sh
|
entry: bin/hook.sh
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
- id: python-files
|
- id: python-files
|
||||||
name: Python files
|
name: Python files
|
||||||
entry: bin/hook.sh
|
entry: bin/hook.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue