docker / labs-githooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linting Tools and GitHooks

What is this project

We are experimenting with gptscript to create instructions like the following.

Find useful linters for my project and then setup githooks

Each linting tool comes with it's own "AI sidecar" to help developers quickly integrate and get the most of each tool. We are also solving the problem of tool installation by using the local docker engine to run all linting processes. The only pre-requisite is Docker Desktop.

For example, using the gpt script tools defined here, we can setup linters in the current project.

setup screen cap

After analyzing the project for different file types and setting up the githooks, both the pre-commit and commit-msg hooks will integrate tools.

commit cap

How to get started

Until we integrate this with a local chat agent, the easiest way to get started is with a simple gptscript.

Tools: https://raw.githubusercontent.com/docker/labs-githooks/main/tool.gpt

Install githooks in my project

As long as you have a local docker engine running, any linting tools used by your project will automatically download the first time the hooks run.

About


Languages

Language:Clojure 36.6%Language:Nix 32.2%Language:Dockerfile 24.1%Language:Shell 7.1%