Skip to content

katalin - Python code advisor

Actions
Comments on PRs with suggested documentation, security, and logic improvements
v1
Latest
Star (3)

katalin GitHub action

This is a GitHub action that generates LLM-assisted suggestions for improving Python code in PRs, and posts them as PR comments.

See this sample PR for an example of katalin in action.

Inputs

openai-api-token

Required The OpenAI API token to use.

enabled-advisors

A newline-separated list of advisor modules to enable. Available advisors are:

  • docstrings: Provides doscstring suggestions for undocumented Python modules, functions, classes, and methods.
  • security: Provides comments regarding potential security concerns.
  • logic-check: Identifies possible logic errors.

Example usage

uses: kislyuk/katalin@v1
with:
  openai-api-key: ${{secrets.OPENAI_API_KEY}}
  enabled-advisors: |-
    docstrings
    security
    logic-check

See Using secrets in GitHub Actions for details on how to set the secret above.

katalin - Python code advisor is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Comments on PRs with suggested documentation, security, and logic improvements
v1
Latest

katalin - Python code advisor is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.