Skip to content

Commit 8105a30

Browse files
committed
Initial commit
1 parent c4ff70f commit 8105a30

File tree

95 files changed

+12052
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+12052
-4
lines changed

.dockerignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.git
2+
.gitignore
3+
.venv
4+
*.pyc
5+
__pycache__
6+
*.pyo
7+
*.pyd
8+
.Python
9+
.env
10+
.env.example
11+
*.log
12+
.coverage
13+
htmlcov/
14+
.pytest_cache/
15+
.mypy_cache/
16+
.vscode/
17+
.idea/
18+
*.egg-info/
19+
dist/
20+
build/
21+
output/
22+
agents/**/__pycache__/
23+
__WIP

.env_example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# OpenAI API key (required - get one for free at https://platform.openai.com)
2+
OPENAI_API_KEY=
3+
# Freepik API key (optional for icons - get one for free at https://www.freepik.com/api)
4+
FREEPIK_API_KEY=
5+
# LangChain API key (optional for tracing - get one for free at https://smith.langchain.com)
6+
LANGCHAIN_API_KEY=
7+
LANGCHAIN_TRACING_V2=
8+
# Extra Configuration
9+
RETAIN_ON_FAILURE=
10+
SEARCH_TERM_LLM=
11+
CODE_GENERATION_LLM=

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
extend-ignore = E203,W503,E501,D104,D100,D107
3+
exclude = .git,__pycache__,.venv,build,dist,.vscode-server
4+
docstring-convention = google
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
on:
3+
push:
4+
paths-ignore:
5+
- '**.md'
6+
tags-ignore:
7+
- 'v*'
8+
9+
concurrency:
10+
group: ${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
validate:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/[email protected]
18+
19+
- name: Set up Python
20+
uses: actions/[email protected]
21+
with:
22+
python-version: '3.11'
23+
24+
- name: Set up .NET
25+
uses: actions/[email protected]
26+
with:
27+
dotnet-version: '8.0.x'
28+
29+
- name: Install Poetry
30+
run: |
31+
curl -sSL https://install.python-poetry.org | python3 - --version 1.8.5
32+
poetry config virtualenvs.create false
33+
34+
- name: Install dependencies
35+
run: make install
36+
37+
- name: Check Python formatting
38+
run: make check-python-format
39+
40+
- name: Check Python linting
41+
run: make check-python-lint
42+
43+
- name: Run Python tests
44+
run: make test-python
45+
46+
- name: Check C# formatting
47+
run: make check-csharp
48+
49+
- name: Run .NET tests
50+
run: make test-dotnet
51+
52+
- name: Build Docker image
53+
run: docker build -t customcode-analyzer-generator -f Dockerfile .

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: ${{ github.repository }}
10+
11+
jobs:
12+
build-and-push:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/[email protected]
21+
22+
- name: Log in to the container registry
23+
uses: docker/[email protected]
24+
with:
25+
registry: ${{ env.REGISTRY }}
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Extract metadata
30+
id: meta
31+
uses: docker/[email protected]
32+
with:
33+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
34+
tags: |
35+
type=semver,pattern={{version}}
36+
type=raw,value=latest
37+
38+
- name: Build and push image
39+
uses: docker/[email protected]
40+
with:
41+
context: .
42+
push: true
43+
tags: ${{ steps.meta.outputs.tags }}
44+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)