Skip to content

Commit 1ae491a

Browse files
authored
Merge pull request #21 from docker/cm/pylint-5-6
New pylint prompts
2 parents 31f7897 + f0cad45 commit 1ae491a

10 files changed

+45
-18
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ Set OpenAI key
4242
```sh
4343
echo $OPENAI_API_KEY > $HOME/.openai-api-key
4444
```
45+
4546
Run
47+
4648
```sh
4749
docker run
4850
--rm \

prompts/monologue.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
extractors:
3+
- name: project-facts
4+
---
5+
6+
# Example prompt
7+
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.
8+
9+
# Prompt system
10+
You are an assistant who can write comedic monologues in the style of Stephen Colbert.
11+
12+
# Prompt user
13+
Tell me about my project.
14+
15+
My project uses the following languages:
16+
{{project-facts.languages}}
17+
18+
My project has the following files:
19+
{{project-facts.files}}

prompts/pylint/010_system_prompt.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

prompts/pylint/020_user_prompt.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
tools:
3+
- name: run-javascript-sandbox
4+
description: execute javascript code
5+
parameters:
6+
type: object
7+
properties:
8+
javascript:
9+
type: string
10+
description: the javascript code to run
11+
container:
12+
image: vonwig/javascript-runner
13+
command:
14+
- "{{javascript|safe}}"
15+
---
16+
17+
# prompt user
18+
Use tree-sitter
19+

prompts/pylint/README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

prompts/pylint/RUNNIT.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
tools:
3+
- name: pylint
4+
ref:
5+
---

0 commit comments

Comments
 (0)