Skip to content

Commit 26bfc5e

Browse files
authored
Merge pull request chenyme#102 from chenyme/refactor
Refactor: project overall architecture and logic
2 parents eb5abc8 + 9458226 commit 26bfc5e

Some content is hidden

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

93 files changed

+11500
-7588
lines changed

.dockerignore

Lines changed: 13 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -1,140 +1,16 @@
1-
# Python 运行时和缓存文件
2-
__pycache__/
3-
*.py[cod]
4-
*$py.class
5-
*.so
1+
__pycache__
2+
*.pyc
3+
*.pyo
4+
*.pyd
65
.Python
7-
*.egg-info/
8-
dist/
9-
build/
10-
*.egg
11-
.eggs/
12-
pip-log.txt
13-
pip-delete-this-directory.txt
14-
15-
# 虚拟环境
16-
venv/
17-
env/
18-
ENV/
19-
.venv/
20-
.virtualenv/
21-
pipenv/
22-
poetry.lock
23-
Pipfile.lock
24-
25-
# IDE 和编辑器
26-
.vscode/
27-
.idea/
28-
*.swp
29-
*.swo
30-
*.swn
31-
.DS_Store
32-
*~
33-
.project
34-
.classpath
35-
.settings/
36-
*.sublime-project
37-
*.sublime-workspace
38-
39-
# Git
40-
.git/
41-
.gitignore
42-
.gitattributes
43-
.gitmodules
44-
45-
# Docker 相关
46-
Dockerfile*
47-
docker-compose*.yml
48-
.dockerignore
49-
.docker/
50-
51-
# 文档和说明
52-
*.md
53-
!data/*.md
54-
README.md
55-
docs/
56-
LICENSE
57-
CHANGELOG*
58-
CONTRIBUTING*
59-
60-
# 测试和质量检查
61-
tests/
62-
test/
63-
*.pytest_cache/
64-
.coverage
65-
.coverage.*
66-
htmlcov/
67-
.tox/
68-
.mypy_cache/
69-
.ruff_cache/
70-
.pytest_cache/
71-
.hypothesis/
72-
.pytype/
73-
coverage.xml
74-
*.cover
75-
.cache/
76-
nosetests.xml
77-
78-
# 日志和运行时数据
79-
logs/
80-
*.log
81-
*.log.*
82-
83-
# 数据临时文件
84-
data/temp/
85-
data/token.json
86-
87-
# 数据库文件
88-
*.db
89-
*.sqlite
90-
*.sqlite3
91-
92-
# 临时文件
93-
tmp/
94-
temp/
95-
*.tmp
96-
*.temp
97-
*.bak
98-
*.orig
99-
*.rej
100-
*.swp
101-
102-
# CI/CD
103-
.github/
104-
.gitlab-ci.yml
105-
.travis.yml
106-
.circleci/
107-
azure-pipelines.yml
108-
.jenkins/
109-
Jenkinsfile
110-
111-
# 环境变量和密钥
1126
.env
1137
.env.*
114-
*.key
115-
*.pem
116-
*.crt
117-
secrets/
118-
119-
# 媒体和大文件
120-
*.mp4
121-
*.avi
122-
*.mov
123-
*.zip
124-
*.tar
125-
*.tar.gz
126-
*.rar
127-
128-
# Node.js
129-
node_modules/
130-
npm-debug.log*
131-
yarn-debug.log*
132-
yarn-error.log*
133-
package-lock.json
134-
yarn.lock
135-
136-
# 其他
137-
*.pyc
138-
.Python
139-
.sass-cache/
140-
.ipynb_checkpoints/
8+
.git
9+
.gitignore
10+
.logs
11+
logs
12+
/data
13+
/data/*
14+
/data/tmp
15+
/data/tmp/*
16+
/tests

.gitattributes

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ jobs:
7272
cache-to: type=gha,mode=max,scope=${{ matrix.suffix }}
7373
pull: true
7474

75-
# 合并多架构镜像为统一标签
7675
merge-manifests:
7776
runs-on: ubuntu-latest
7877
needs: build-and-push

.gitignore

Lines changed: 28 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
# Byte-compiled / optimized / DLL files
1+
# Python
22
__pycache__/
33
*.py[cod]
44
*$py.class
5-
.idea
6-
7-
# C extensions
85
*.so
9-
10-
# Distribution / packaging
116
.Python
127
build/
138
develop-eggs/
@@ -21,164 +16,43 @@ parts/
2116
sdist/
2217
var/
2318
wheels/
24-
share/python-wheels/
2519
*.egg-info/
2620
.installed.cfg
2721
*.egg
2822
MANIFEST
2923

30-
# PyInstaller
31-
# Usually these files are written by a python script from a template
32-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33-
*.manifest
34-
*.spec
35-
36-
# Installer logs
37-
pip-log.txt
38-
pip-delete-this-directory.txt
39-
40-
# Unit test / coverage reports
41-
htmlcov/
42-
.tox/
43-
.nox/
44-
.coverage
45-
.coverage.*
46-
.cache
47-
nosetests.xml
48-
coverage.xml
49-
*.cover
50-
*.py,cover
51-
.hypothesis/
52-
.pytest_cache/
53-
cover/
54-
55-
# Translations
56-
*.mo
57-
*.pot
58-
59-
# Django stuff:
60-
*.log
61-
local_settings.py
62-
db.sqlite3
63-
db.sqlite3-journal
64-
65-
# Flask stuff:
66-
instance/
67-
.webassets-cache
68-
69-
# Scrapy stuff:
70-
.scrapy
71-
72-
# Sphinx documentation
73-
docs/_build/
74-
75-
# PyBuilder
76-
.pybuilder/
77-
target/
78-
79-
# Jupyter Notebook
80-
.ipynb_checkpoints
81-
82-
# IPython
83-
profile_default/
84-
ipython_config.py
85-
86-
# pyenv
87-
# For a library or package, you might want to ignore these files since the code is
88-
# intended to run in multiple environments; otherwise, check them in:
89-
# .python-version
90-
91-
# pipenv
92-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
94-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
95-
# install all needed dependencies.
96-
#Pipfile.lock
97-
98-
# UV
99-
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100-
# This is especially recommended for binary packages to ensure reproducibility, and is more
101-
# commonly ignored for libraries.
102-
#uv.lock
103-
104-
# poetry
105-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106-
# This is especially recommended for binary packages to ensure reproducibility, and is more
107-
# commonly ignored for libraries.
108-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109-
#poetry.lock
110-
111-
# pdm
112-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113-
#pdm.lock
114-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
115-
# in version control.
116-
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
117-
.pdm.toml
118-
.pdm-python
119-
.pdm-build/
120-
121-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
122-
__pypackages__/
123-
124-
# Celery stuff
125-
celerybeat-schedule
126-
celerybeat.pid
127-
128-
# SageMath parsed files
129-
*.sage.py
130-
131-
# Environments
132-
.env
133-
.venv
134-
env/
24+
# Virtual Environment
25+
.venv/
13526
venv/
13627
ENV/
137-
env.bak/
138-
venv.bak/
139-
140-
logs/*
141-
142-
# Spyder project settings
143-
.spyderproject
144-
.spyproject
145-
146-
# Rope project settings
147-
.ropeproject
148-
149-
# mkdocs documentation
150-
/site
151-
152-
# mypy
153-
.mypy_cache/
154-
.dmypy.json
155-
dmypy.json
156-
157-
# Pyre type checker
158-
.pyre/
28+
env/
15929

160-
# pytype static type analyzer
161-
.pytype/
30+
# IDE
31+
.vscode/
32+
.idea/
33+
*.swp
34+
*.swo
35+
*~
36+
.DS_Store
16237

163-
# Cython debug symbols
164-
cython_debug/
38+
# Environment Variables
39+
.env
40+
.env.local
41+
.env.*.local
16542

166-
# PyCharm
167-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
168-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
169-
# and can be added to the global gitignore or merged into this file. For a more nuclear
170-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
171-
#.idea/
43+
# Logs
44+
logs/
45+
*.log
17246

173-
# Ruff stuff:
174-
.ruff_cache/
47+
# Data
48+
data/*.json
49+
data/tmp/
50+
data/.locks/
17551

176-
# PyPI configuration file
177-
.pypirc
52+
# Testing
53+
.pytest_cache/
54+
.coverage
55+
htmlcov/
17856

179-
# Cursor
180-
# Cursor is an AI-powered code editor.`.cursorignore` specifies files/directories to
181-
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
182-
# refer to https://docs.cursor.com/context/ignore-files
183-
.cursorignore
184-
.cursorindexingignore
57+
# Project specific
58+
config.local.toml

0 commit comments

Comments
 (0)