Browse Source

Merge branch 'main' of https://github.com/eunomia-bpf/GPTtrace

pull/3/head
officeyutong 2 years ago
parent
commit
403a564597
3 changed files with 6 additions and 5 deletions
  1. +3
    -2
      .github/workflows/pylint.yml
  2. +2
    -2
      README.md
  3. +1
    -1
      requirements.txt

+ 3
- 2
.github/workflows/pylint.yml View File

@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
@@ -18,6 +18,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pylint
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
# pylint $(git ls-files '*.py')

+ 2
- 2
README.md View File

@@ -1,7 +1,7 @@
# GPTtrace 🤖

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Actions Status](https://github.com/eunomia-bpf/eunomia-bpf/workflows/Ubuntu/badge.svg)](https://github.com/eunomia-bpf/eunomia-bpf/actions)
[![Actions Status](https://github.com/eunomia-bpf/GPTtrace/workflows/Pylint/badge.svg)](https://github.com/eunomia-bpf/GPTtrace/actions)
[![DeepSource](https://deepsource.io/gh/eunomia-bpf/eunomia-bpf.svg/?label=active+issues&show_trend=true&token=rcSI3J1-gpwLIgZWtKZC-N6C)](https://deepsource.io/gh/eunomia-bpf/eunomia-bpf/?ref=repository-badge)
[![CodeFactor](https://www.codefactor.io/repository/github/eunomia-bpf/eunomia-bpf/badge)](https://www.codefactor.io/repository/github/eunomia-bpf/eunomia-bpf)

@@ -52,7 +52,7 @@ optional arguments:
### Use prompts to teach ChatGPT to write eBPF programs

```sh
./GPTtrace.py -t
./GPTtrace.py --train
```

This will use the material in the `prompts` directory to teach ChatGPT to write eBPF programs in bpftrace, libbpf, and BCC styles. You can also do that manually by sending the prompts to ChatGPT in the Website.


+ 1
- 1
requirements.txt View File

@@ -24,7 +24,7 @@ pycodestyle==2.10.0
pycryptodomex==3.17
pyflakes==3.0.1
Pygments==2.14.0
pygments-markdown-lexer==0.1.0.dev39
pygments-markdown-lexer
pylint==2.16.2
regex==2022.10.31
requests==2.28.2


Loading…
Cancel
Save