Skip to content

Commit

Permalink
Merge pull request #21 from docker/cm/pylint-5-6
Browse files Browse the repository at this point in the history
New pylint prompts
  • Loading branch information
ColinMcNeil authored Sep 10, 2024
2 parents 31f7897 + f0cad45 commit 1ae491a
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 18 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ Set OpenAI key
```sh
echo $OPENAI_API_KEY > $HOME/.openai-api-key
```

Run

```sh
docker run
--rm \
Expand Down
19 changes: 19 additions & 0 deletions prompts/monologue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
extractors:
- name: project-facts
---

# Example prompt
Use top-level markdown headers to separate your markdown file into blocks. Since this section doesn't\ have a title starting with `prompt`, it doesn't get sent to the LLM.

# Prompt system
You are an assistant who can write comedic monologues in the style of Stephen Colbert.

# Prompt user
Tell me about my project.

My project uses the following languages:
{{project-facts.languages}}

My project has the following files:
{{project-facts.files}}
1 change: 0 additions & 1 deletion prompts/pylint/010_system_prompt.md

This file was deleted.

4 changes: 0 additions & 4 deletions prompts/pylint/020_user_prompt.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions prompts/pylint/5-6-top-level-ranges.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
tools:
- name: run-javascript-sandbox
description: execute javascript code
parameters:
type: object
properties:
javascript:
type: string
description: the javascript code to run
container:
image: vonwig/javascript-runner
command:
- "{{javascript|safe}}"
---

# prompt user
Use tree-sitter

13 changes: 0 additions & 13 deletions prompts/pylint/README.md

This file was deleted.

5 changes: 5 additions & 0 deletions prompts/pylint/RUNNIT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tools:
- name: pylint
ref:
---

0 comments on commit 1ae491a

Please sign in to comment.