langgenius / langgenius/dify

todo: add gate for session

Open
#40,071 0 comments 1 reaction 1 assignee Claimed by @asukaminato0721 View on GitHub
Dominant language
TypeScript
Stars
156k
Forks
24.6k
Avg merge
22h 9m
Merged PRs (30d)
610

Description

add

```
ast-grep scan --inline-rules 'id: db-session-mock
language: python
rule:
any:
- pattern: $SESSION = MagicMock($$$ARGS)
- pattern: $SESSION = Mock($$$ARGS)
constraints:
SESSION:
regex: ^(session|db_session|mock_session|read_session|write_session)$' tests/unit_tests --json=stream | jq -r '.file' | sort | uniq -c | sort -n
```

to ci after session mock cleaned.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.