[PR #25373] refactor: update pyrightconfig.json to use ignore field for better type checking configuration #31035

Closed
opened 2026-02-21 20:48:42 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/25373

State: closed
Merged: Yes


Summary

This PR updates the pyrightconfig.json configuration to use the "ignore" field instead of expanding the "exclude" field for directories that should not be type-checked.

Related Issue

Closes #25372

Changes Made

  • Moved directories from exclude to ignore field for clearer semantics
  • Narrowed include field to focus on models and configs directories
  • Kept essential exclusions (.venv, tests/, migrations/) in exclude field

Rationale

Using the ignore field for directories that should not be type-checked provides clearer semantics:

  • exclude is for files that shouldn't be processed at all
  • ignore is for files that are processed but not type-checked

This distinction helps maintainers understand the intent better and aligns with Pyright's recommended configuration patterns.

**Original Pull Request:** https://github.com/langgenius/dify/pull/25373 **State:** closed **Merged:** Yes --- ## Summary This PR updates the pyrightconfig.json configuration to use the "ignore" field instead of expanding the "exclude" field for directories that should not be type-checked. ## Related Issue Closes #25372 ## Changes Made - Moved directories from `exclude` to `ignore` field for clearer semantics - Narrowed `include` field to focus on `models` and `configs` directories - Kept essential exclusions (`.venv`, `tests/`, `migrations/`) in `exclude` field ## Rationale Using the `ignore` field for directories that should not be type-checked provides clearer semantics: - `exclude` is for files that shouldn't be processed at all - `ignore` is for files that are processed but not type-checked This distinction helps maintainers understand the intent better and aligns with Pyright's recommended configuration patterns.
yindo added the pull-request label 2026-02-21 20:48:42 -05:00
yindo closed this issue 2026-02-21 20:48:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#31035