Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agents framework refactoring #2

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Your Telegram Bot Token
TELEGRAM_TOKEN=123456789:ABCdefGhIjKlmnOpqRsTuvwXyz123456789
# Database path
DATABASE_PATH=./data/app.db
# Log Path
LOG_PATH=./data/app.log
# Debug
DEBUG=False
8 changes: 0 additions & 8 deletions .env.sample

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:

jobs:
mypy:
name: "mypy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version-file: 'pyproject.toml'
cache: 'poetry'
- name: Install dependencies
run: poetry install
- uses: tsuyoshicho/action-mypy@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
target: "./src"
execute_command: 'poetry run mypy'
fail_on_error: true

ruff:
name: "ruff"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version-file: 'pyproject.toml'
cache: 'poetry'
- name: Install dependencies
run: pip install ruff
- name: Run Ruff
run: ruff check --output-format=github
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
.env
__pycache__
venv
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Alexander Miller
Copyright (c) 2024 LibertAI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
35 changes: 0 additions & 35 deletions agent.yaml

This file was deleted.

116 changes: 0 additions & 116 deletions alembic.ini

This file was deleted.

97 changes: 0 additions & 97 deletions alembic/env.py

This file was deleted.

26 changes: 0 additions & 26 deletions alembic/script.py.mako

This file was deleted.

30 changes: 0 additions & 30 deletions alembic/versions/418eae9ef110_migration_2024_03_18_17_57_32.py

This file was deleted.

5 changes: 5 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[mypy-libertai_agents.*]
ignore_missing_imports = True

[mypy-telebot.*]
ignore_missing_imports = True
Loading
Loading