Skip to content

Instantly share code, notes, and snippets.

View dj-wasabi's full-sized avatar

Werner Dijkerman dj-wasabi

View GitHub Profile
Shellcheck Bash Linter...................................................Passed
Generate Markdown toc....................................................Passed
Pretty Print YAML files..................................................Passed
No commit on master or main..............................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1
lib/djWasabi/git.py:59:1: E302 expected 2 blank lines, found 1
lib/djWasabi/git.py:79:22: E231 missing whitespace after ','
$ git commit -am "Some message that I know that it will not make it to the log"
Shellcheck Bash Linter...................................................Passed
Generate Markdown toc....................................................Passed
Pretty Print YAML files..................................................Passed
No commit on master or main..............................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1
lib/djWasabi/git.py:59:1: E302 expected 2 blank lines, found 1
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
@dj-wasabi
dj-wasabi / gist:31380835aeeb896c6ea0e2dbcad4e5bb
Created January 12, 2024 18:07
pre-commit-hook-shellcheck-example
- id: shellcheck
name: Shellcheck Bash Linter
description: Performs linting on bash scripts
entry: bin/shellcheck.sh
language: script
@dj-wasabi
dj-wasabi / gist:d3af1daa2400bc45da670f4ed7dc4942
Created January 12, 2024 18:06
pre-commit-hooks-repos-dj-wasabi
repos:
- repo: https://github.com/dj-wasabi/pre-commit-hooks
rev: master
hooks:
- id: shellcheck
- id: markdown-toc
- id: verify-yaml
- id: no-commit-on-branch
args: ['-b master,main']
$ ls -l .git/hooks
total 112
-rwxr-xr-x 1 wdijkerman staff 478 Jun 14 21:01 applypatch-msg.sample
-rwxr-xr-x 1 wdijkerman staff 896 Jun 14 21:01 commit-msg.sample
-rwxr-xr-x 1 wdijkerman staff 3327 Jun 14 21:01 fsmonitor-watchman.sample
-rwxr-xr-x 1 wdijkerman staff 189 Jun 14 21:01 post-update.sample
-rwxr-xr-x 1 wdijkerman staff 424 Jun 14 21:01 pre-applypatch.sample
-rwxr-xr-x 1 wdijkerman staff 1638 Jun 14 21:01 pre-commit.sample
-rwxr-xr-x 1 wdijkerman staff 416 Jun 14 21:01 pre-merge-commit.sample
-rwxr-xr-x 1 wdijkerman staff 1348 Jun 14 21:01 pre-push.sample
consul.*.runtime.*
name="consul_runtime"
type="$2"
host="{{ inventory_hostname }}"
consul.runtime.total_gc_pause_ns
name="consul_runtime_total_gc_pause_ns"
type="$2"
host="{{ inventory_hostname }}"
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
# .bash_profile
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Including git-prompt script
source ~/.git-prompt.sh
altscreen on
term screen-256color
bind ',' prev
bind '.' next
startup_message off
vbell off
#
backtick 1 10 10 .bin/screen.sh