mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #1792] [CLOSED] Add basedpyright type checking infrastructure to dify-official-plugins #2087
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/1792
Author: @Copilot
Created: 9/30/2025
Status: ❌ Closed
Base:
main← Head:copilot/fix-d8d029a8-4886-4f01-b709-f21caf2b09f2📝 Commits (5)
d268072Initial plan0594260Add basedpyright type checking infrastructure9cfa787Add comprehensive development documentation and improve type checking script13ce9f9Delete DEVELOPMENT.md74c1ab0Delete Makefile📊 Changes
7 files changed (+209 additions, -3 deletions)
View changed files
📝
.github/workflows/pre-check-plugin.yaml(+9 -0)➕
.github/workflows/type-check.yml(+66 -0)📝
.gitignore(+4 -3)📝
README.md(+16 -0)➕
dev/basedpyright-check(+60 -0)➕
pyproject.toml(+21 -0)➕
pyrightconfig.json(+33 -0)📄 Description
This PR implements comprehensive type checking infrastructure using
basedpyrightfor the dify-official-plugins repository, mirroring the type checking setup from the main Dify repository.Overview
Adds static type checking capabilities to improve code quality and catch type-related bugs during development and CI/CD processes.
Changes Made
Core Infrastructure
pyproject.toml- Root configuration with basedpyright development dependencypyrightconfig.json- Type checking configuration optimized for plugin developmentdev/basedpyright-check- Cross-platform executable script supporting bothuvand direct Python executionMakefile- Development targets for type checking, linting, and other common tasksCI/CD Integration
.github/workflows/type-check.yml- Dedicated type checking workflow.github/workflows/pre-check-plugin.yaml- Integrated type checking into existing plugin validationDocumentation
DEVELOPMENT.md- Comprehensive development guide covering type checking, setup, and best practicesREADME.md- Added development section with quick start commands.gitignore- Excludes type checking artifactsKey Features
Flexible Execution
The type checking infrastructure works in multiple environments:
Sensible Configuration
The pyrightconfig.json is tuned for plugin development:
CI Integration
Type checking automatically runs on:
Testing
The implementation has been verified with existing plugins:
Benefits
Usage for Developers
Quick start:
This implementation follows the same patterns and configuration philosophy as the main Dify repository, ensuring consistency across the ecosystem while being tailored for the unique requirements of plugin development.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.