Fix yamllint recommendations

This commit is contained in:
Jason Hollis 2020-12-06 12:28:19 -05:00
parent 9cbfcde81a
commit 346d5c0de7
35 changed files with 312 additions and 238 deletions

2
.github/FUNDING.yml vendored
View file

@ -1,2 +1,4 @@
---
github: asottile
open_collective: pre-commit

View file

@ -1,3 +1,5 @@
---
- id: validate_manifest
name: Validate Pre-Commit Manifest
description: This validator validates a pre-commit hooks manifest file

View file

@ -1,3 +1,5 @@
---
trigger:
branches:
include: [master, test-me-*]
@ -13,7 +15,7 @@ resources:
ref: refs/tags/v2.0.0
jobs:
- template: job--python-tox.yml@asottile
- template: job--python-tox.yml@asottile
parameters:
toxenvs: [py37]
os: windows
@ -26,7 +28,7 @@ jobs:
Write-Host "##vso[task.prependpath]C:\Strawberry\perl\site\bin"
Write-Host "##vso[task.prependpath]C:\Strawberry\c\bin"
displayName: Add strawberry perl to PATH
- template: job--python-tox.yml@asottile
- template: job--python-tox.yml@asottile
parameters:
toxenvs: [py37]
os: linux
@ -42,7 +44,7 @@ jobs:
testing/get-swift.sh
echo '##vso[task.prependpath]/tmp/swift/usr/bin'
displayName: install swift
- template: job--python-tox.yml@asottile
- template: job--python-tox.yml@asottile
parameters:
toxenvs: [pypy3, py36, py37, py38, py39]
os: linux

View file

@ -1,3 +1,5 @@
---
channels:
- conda-forge
- defaults

View file

@ -1,3 +1,5 @@
---
- id: hook
name: hook
entry: ./hook.sh

View file

@ -1,3 +1,5 @@
---
- id: arg-per-line
name: Args per line hook
entry: bin/hook.sh

View file

@ -1,8 +1,11 @@
---
- id: 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])'
language: conda
files: \.py$
- id: additional-deps
name: additional-deps
entry: python

View file

@ -1,3 +1,5 @@
---
channels:
- conda-forge
- defaults

View file

@ -1,3 +1,5 @@
---
- id: echo-java
name: echo-java
description: echo from java

View file

@ -1,3 +1,5 @@
---
- id: docker-hook
name: Docker test hook
entry: echo

View file

@ -1,8 +1,11 @@
---
- id: echo-entrypoint
name: echo (via --entrypoint)
language: docker_image
entry: --entrypoint echo cogniteev/echo
- id: echo-cmd
name: echo (via cmd)
language: docker_image
lguage: docker_image
entry: cogniteev/echo echo

View file

@ -1,3 +1,5 @@
---
- id: dotnet example hook
name: dotnet example hook
entry: testeroni

View file

@ -1,3 +1,5 @@
---
- id: dotnet example hook
name: dotnet example hook
entry: testeroni

View file

@ -1,3 +1,5 @@
---
- id: python-files
name: Python files
entry: bin/hook.sh

View file

@ -1,3 +1,5 @@
---
- id: failing_hook
name: Failing hook
entry: bin/hook.sh

View file

@ -1,3 +1,5 @@
---
- id: golang-hook
name: golang example hook
entry: golang-hello-world

View file

@ -1,3 +1,5 @@
---
- id: logfile test hook
name: Logfile test hook
entry: bin/hook.sh

View file

@ -1,13 +1,17 @@
---
- id: bash_hook
name: Bash hook
entry: bin/hook.sh
language: script
files: 'foo.py'
- id: bash_hook2
name: Bash hook
entry: bin/hook2.sh
language: script
files: ''
- id: bash_hook3
name: Bash hook
entry: bin/hook3.sh

View file

@ -1,3 +1,5 @@
---
- id: foo
name: Foo
entry: foo

View file

@ -1,3 +1,5 @@
---
- id: versioned-node-hook
name: Versioned node hook
entry: versioned-node-hook

View file

@ -1,3 +1,5 @@
---
- id: not-found-exe
name: Not found exe
entry: i-dont-exist-lol

View file

@ -1,3 +1,5 @@
---
- id: perl-hook
name: perl example hook
entry: pre-commit-perl-hello

View file

@ -1,3 +1,5 @@
---
- id: prints_cwd
name: Prints Cwd
entry: pwd

View file

@ -1,3 +1,5 @@
---
- id: python3-hook
name: Python 3 Hook
entry: python3-hook

View file

@ -1,3 +1,5 @@
---
- id: foo
name: Foo
entry: foo

View file

@ -1,3 +1,5 @@
---
- id: foo
name: Foo
entry: foo

View file

@ -1,3 +1,5 @@
---
- id: ruby_hook
name: Ruby Hook
entry: ruby_hook

View file

@ -1,3 +1,5 @@
---
- id: ruby_hook
name: Ruby Hook
entry: ruby_hook

View file

@ -1,3 +1,5 @@
---
- id: rust-hook
name: rust example hook
entry: rust-hello-world

View file

@ -1,3 +1,5 @@
---
- id: bash_hook
name: Bash hook
entry: bin/hook.sh

View file

@ -1,3 +1,5 @@
---
- id: stdout-stderr
name: stdout-stderr
language: script

View file

@ -1,3 +1,5 @@
---
- id: swift-hooks-repo
name: Swift hooks repo example
description: Runs the hello world app generated by swift package init --type executable (binary called swift_hooks_repo here)

View file

@ -1,3 +1,5 @@
---
- id: system-hook-with-spaces
name: System hook with spaces
entry: bash -c 'echo "Hello World"'

View file

@ -1,3 +1,5 @@
---
- id: python-cython-files
name: Python and Cython files
entry: bin/hook.sh

View file

@ -1,3 +1,5 @@
---
- id: python-files
name: Python files
entry: bin/hook.sh