Skip to content

Commit ca41cf2

Browse files
authored
Merge pull request #15 from FlowLLM-AI/dev/0625
refactor(framework): introduce component-based application architecture
2 parents bd64f9c + 7eb18ab commit ca41cf2

398 files changed

Lines changed: 8033 additions & 45401 deletions

File tree

Some content is hidden

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

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
os: [ ubuntu-latest ]
1212
env:
1313
OS: ${{ matrix.os }}
14-
PYTHON: '3.10'
14+
PYTHON: '3.11'
1515
steps:
1616
- uses: actions/checkout@master
1717
- name: Setup Python
1818
uses: actions/setup-python@master
1919
with:
20-
python-version: '3.10'
20+
python-version: '3.11'
2121
- name: Update setuptools
2222
run: |
2323
pip install -U setuptools wheel
@@ -35,4 +35,4 @@ jobs:
3535
echo -e "\e[41m [**FAIL**] Please install pre-commit and format your code first. \e[0m"
3636
exit 1
3737
fi
38-
echo -e "\e[46m ********************************Passed******************************** \e[0m"
38+
echo -e "\e[46m ********************************Passed******************************** \e[0m"

.github/workflows/python-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v6
2626
- name: Set up Python
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@v6
2828
with:
29-
python-version: '3.10'
29+
python-version: '3.11'
3030
- name: Install dependencies
3131
run: |
3232
python -m pip install --upgrade pip

.github/workflows/unittest.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Tests FlowLLM
2+
3+
on:
4+
push:
5+
branches: [main, master, dev, develop]
6+
pull_request:
7+
branches: [main, master, dev, develop]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
unit-tests:
16+
name: Unit Tests - py${{ matrix.python-version }}
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
python-version: ["3.11", "3.12", "3.13"]
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
cache: 'pip'
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip setuptools wheel
35+
pip install -e ".[dev,core]"
36+
37+
- name: Run unit tests
38+
run: |
39+
pytest tests/unit \
40+
-v \
41+
--tb=long \
42+
-s \
43+
--log-cli-level=WARNING

.gitignore

Lines changed: 49 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,54 @@
1-
.vscode
2-
.env*
1+
# OS / editor
32
.DS_Store
4-
.idea
3+
.idea/
4+
.vscode/
5+
*.code-workspace
6+
7+
# Local environment
8+
.env
9+
.env.*
10+
!.env.example
11+
!example.env
12+
.venv/
513
venv/
6-
.ipynb_checkpoints
7-
.__pycache__
8-
__pycache__
9-
*.log
10-
tmp*
11-
temp*
12-
private*
14+
env/
15+
private*/
16+
17+
# Python caches / test artifacts
18+
__pycache__/
19+
*.py[cod]
20+
*$py.class
21+
.ipynb_checkpoints/
22+
.pytest_cache/
23+
.ruff_cache/
24+
.mypy_cache/
25+
.coverage
26+
coverage.xml
27+
htmlcov/
28+
29+
# Packaging / build outputs
30+
build/
1331
dist/
14-
nohup*
32+
*.egg-info/
33+
34+
# Logs / temporary files
35+
*.log
36+
nohup.out
37+
nohup*.out
1538
log/
16-
**/logs/*
39+
logs/
40+
runs/
41+
tmp*/
42+
temp*/
1743
.trash/
18-
runs
19-
logs
20-
*.egg-info/*
21-
build/*
22-
**/cache/**
23-
*.pdf
24-
*.csv
25-
site/*
44+
45+
# FlowLLM runtime data
46+
.flowllm/
47+
vault/
48+
*.db
49+
*.sqlite
50+
*.sqlite3
51+
52+
# Documentation build outputs
53+
docs/_build/
54+
site/

.pre-commit-config.yaml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,25 @@ repos:
33
rev: v6.0.0
44
hooks:
55
- id: check-ast
6-
exclude: ^old/
76
- id: check-yaml
8-
exclude: ^old/
97
- id: check-xml
10-
exclude: ^old/
118
- id: check-toml
12-
exclude: ^old/
139
- id: check-json
14-
exclude: ^old/
1510
- id: detect-private-key
16-
exclude: ^old/
1711
- id: trailing-whitespace
18-
exclude: ^old/
1912
- repo: https://github.com/asottile/add-trailing-comma
2013
rev: v4.0.0
2114
hooks:
2215
- id: add-trailing-comma
23-
exclude: ^old/
2416
- repo: https://github.com/psf/black
2517
rev: 25.9.0
2618
hooks:
2719
- id: black
28-
exclude: ^old/
2920
args: [--line-length=120]
3021
- repo: https://github.com/PyCQA/flake8
3122
rev: 7.3.0
3223
hooks:
3324
- id: flake8
34-
exclude: ^old/
3525
args: [
3626
"--extend-ignore=E203",
3727
"--max-line-length=120"
@@ -42,8 +32,7 @@ repos:
4232
- id: pylint
4333
exclude:
4434
(?x)(
45-
^old/
46-
| ^docs
35+
^docs
4736
| pb2\.py$
4837
| grpc\.py$
4938
| \.demo$
@@ -54,6 +43,7 @@ repos:
5443
--disable=W0511,
5544
--disable=W0718,
5645
--disable=W0122,
46+
--disable=W1203,
5747
--disable=C0103,
5848
--disable=R0913,
5949
--disable=R0917,
@@ -81,8 +71,9 @@ repos:
8171
--disable=C3001,
8272
--disable=R1702,
8373
--disable=R0912,
74+
--max-statements=120,
8475
--max-line-length=120,
85-
--max-statements=75,
76+
--max-module-lines=1500,
8677
]
8778
- repo: https://github.com/regebro/pyroma
8879
rev: "5.0"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2024 FlowLLM
189+
Copyright 2025 Alibaba Group
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)