mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-28 11:40:25 +00:00
refactor: rename social media and add pre-commit (#1113)
Co-authored-by: bytecraftii <bytecraftii@users.noreply.github.com> Co-authored-by: bytecii <bytecii@users.noreply.github.com> Co-authored-by: Wendong-Fan <w3ndong.fan@gmail.com>
This commit is contained in:
parent
af93bb3065
commit
b3f47f907a
27 changed files with 1962 additions and 720 deletions
50
.github/workflows/pre-commit.yml
vendored
Normal file
50
.github/workflows/pre-commit.yml
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
name: Pre-commit
|
||||
|
||||
"on":
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: backend
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v4
|
||||
|
||||
- name: Install dev dependencies
|
||||
run: uv sync --group dev
|
||||
|
||||
- name: Run pre-commit
|
||||
run: >-
|
||||
uv run pre-commit run --files
|
||||
app/agent/README.md
|
||||
app/agent/__init__.py
|
||||
app/agent/factory/__init__.py
|
||||
app/agent/factory/social_media.py
|
||||
app/service/chat_service.py
|
||||
app/service/task.py
|
||||
app/utils/toolkit/google_calendar_toolkit.py
|
||||
app/utils/toolkit/google_gmail_mcp_toolkit.py
|
||||
app/utils/toolkit/linkedin_toolkit.py
|
||||
app/utils/toolkit/reddit_toolkit.py
|
||||
app/utils/toolkit/slack_toolkit.py
|
||||
app/utils/toolkit/twitter_toolkit.py
|
||||
app/utils/toolkit/whatsapp_toolkit.py
|
||||
tests/app/agent/factory/test_social_media.py
|
||||
env:
|
||||
SKIP: no-commit-to-branch
|
||||
Loading…
Add table
Add a link
Reference in a new issue