Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion .github/workflows/api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
cd api
uv add --dev pyrefly
uv run pyrefly check || true
uv run pyrefly check

- name: Run dify config tests
run: uv run --project api dev/pytest/pytest_config_tests.py
Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __call__(self, *args: object, **kwargs: object) -> object:
day = dify_config.CELERY_BEAT_SCHEDULER_TIME

# if you add a new task, please add the switch to CeleryScheduleTasksConfig
beat_schedule = {}
beat_schedule: dict[str, dict[str, crontab | str | timedelta]] = {}
if dify_config.ENABLE_CLEAN_EMBEDDING_CACHE_TASK:
imports.append("schedule.clean_embedding_cache_task")
beat_schedule["clean_embedding_cache_task"] = {
Expand Down
1 change: 0 additions & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ dev = [
"dotenv-linter~=0.5.0",
"faker~=32.1.0",
"lxml-stubs~=0.5.1",
"ty~=0.0.1a19",
"basedpyright~=1.31.0",
"ruff~=0.14.0",
"pytest~=8.3.2",
Expand Down
20 changes: 20 additions & 0 deletions api/pyrefly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
project-includes = ["."]
project-excludes = [
"tests/",
".venv",
"migrations/",
"core/rag",
"extensions/storage/",
"services/",
"core/",
"controllers/",
"extensions/ext_mail.py",
"extensions/ext_otel.py",
"libs/",
"models/",
"factories/",
"schedule/queue_monitor_task.py",
"factories/variable_factory.py",
]
python-platform = "linux"
python-version = "3.11.0"
27 changes: 0 additions & 27 deletions api/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.