This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env hy | |
| (import sys) | |
| (import subprocess) | |
| (import [pathlib [Path]]) | |
| (import [functools [partial]]) | |
| (setv current-branch-name (subprocess.check_output ["git" "symbolic-ref" "--short" "HEAD"] :encoding "utf-8")) | |
| (setv work-time (subprocess.check_output ["glass" "-s" "status" "--commit-template"] :encoding "utf-8")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .error-bg { | |
| color-background: #FFCCCC; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @wire(check-shard-no-tests { | |
| = shard | |
| "." | FS.Iterate(Recursive: true) >= filepaths | |
| Remove( | |
| filepaths | |
| Predicate: { | |
| Regex.Match(""".*(test|samples).*(\.shs|\.edn|\.clj)""") | Is([]) | |
| Or | |
| FS.Read | ExpectString | String.Contains(shard) | Not }) | |
| When(Is([]) { |
OlderNewer