this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

More pre-commit adjustments

+13 -24
+1 -1
.config/btt/scripts/like_spotify_song.py
··· 105 105 applescript += f' subtitle "{subtitle}"' 106 106 try: 107 107 LOG.info("Displaying notification") 108 - # NOTE: requires a sudoers entry like 108 + # NOTE: requires a sudoers entry like 109 109 # %admin ALL = (ALL) NOPASSWD: /path/to/this/script 110 110 # to work passwordless, otherwise it won't have spotify icon 111 111 # As a result, this file and its parent dir should be root-owned
.config/iterm2/scripts/set_dynamic_default.py
+7 -3
.config/yadm/.pre-commit-config.yaml
··· 8 8 rev: v4.6.0 9 9 hooks: 10 10 - id: check-added-large-files 11 - args: [--enforce-all] 11 + # TODO: maybe consider converting some of these to LFS 12 + args: [--enforce-all, --maxkb=2048] 13 + exclude: '.*[.]bttpreset$' 12 14 - id: check-ast 13 15 - id: check-case-conflict 14 16 - id: check-executables-have-shebangs 15 17 - id: check-json 18 + exclude: '^([.]config/Code|[.]vscode).*' 16 19 - id: check-merge-conflict 17 20 - id: check-shebang-scripts-are-executable 18 21 - id: check-symlinks 22 + exclude: '^[.]termux/shell$' 19 23 - id: check-toml 20 24 - id: check-vcs-permalinks 21 25 - id: check-yaml 22 - - id: check-yaml 23 - - id: detect-private-key 24 26 - id: end-of-file-fixer 27 + exclude: '^[.]config/btt/scripts/.*$' 25 28 - id: trailing-whitespace 29 + exclude: '^[.]config/btt/scripts/.*$' 26 30 27 31 - repo: https://github.com/JohnnyMorganz/StyLua 28 32 rev: v0.20.0
+5 -20
.config/yadm/hooks/pre_commit
··· 15 15 exit 0 16 16 fi 17 17 18 - export GIT_DIR="$YADM_HOOK_REPO" 19 - export GIT_WORKTREE="$YADM_HOOK_WORK" 20 - 21 - hooks/pre-commit.pyz run --show-diff-on-failure --config .pre-commit-config.yaml || exit $? 22 - unset GIT_DIR GIT_WORKTREE 23 - 24 - # TODO: Convert the remainder of this stuff to pre-commit, if feasible. For brew, 25 - # maybe just switch to nix instead and do a `darwin-rebuild check` or something 26 - 27 18 # shellcheck source=../utils.sh 28 19 source utils.sh 29 20 ··· 94 85 exit_with_error "Untracked files found in repository:" "$untracked_files" 95 86 fi 96 87 97 - if grep -q fish <(echo "$CHANGED_FILES"); then 98 - fish -c fish_check_saved_functions 99 - failed_files=$? 100 - if [[ $failed_files -ne 0 ]] ; then 101 - exit_with_error "$failed_files files failed fish lint/format checks!" 102 - fi 103 - fi 104 - 105 88 if grep -E 'path = /|submodule "/' -- ~/.gitmodules; then 106 89 exit_with_error "Submodule paths in $HOME/.gitmodules should be relative!" 107 90 fi ··· 110 93 read -r -p "Some pre-commit checks had warnings. Press enter to continue or Ctrl-C to cancel." 111 94 fi 112 95 113 - # TODO: convert other scripts to fish instead of bash (except bootstrap) 114 - # or actually, just user pre-commit instead of this mess. Maybe bootstrap could 115 - # also be converted to something less complicated 96 + # It's also possible to run pre-commit directly here, but it doesn't 97 + # play as nicely with the automatic stashing/staging stuff vs a normal githook. 98 + 99 + # TODO: Convert the remainder of this stuff to pre-commit, if feasible. For brew, 100 + # maybe just switch to nix instead and do a `darwin-rebuild check` or something