-
Notifications
You must be signed in to change notification settings - Fork 11
Add Microsoft Python standards compliance (Type Safety, Enhanced Metadata, Missing Docstrings) #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add py.typed markers for both packages (enables type checking) - Enhance pyproject.toml with complete metadata and dev dependencies - Add missing docstrings for HttpClient, error_codes functions - Add module docstrings for better discoverability - Configure linting tools (black, isort, mypy, ruff) per Microsoft standards
- Remove old dataverse_sdk folder (obsolete structure) - Fix duplicate [tool.setuptools] section in pyproject.toml - Keep only PowerPlatform.Dataverse as the correct package structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the SDK with Microsoft Python standards compliance by adding type safety markers, comprehensive docstrings, and enhanced package metadata. The changes improve developer experience through better IntelliSense support, static type checking capabilities, and professional packaging standards.
- Added
py.typedmarker files to enable full type checking support for bothdataverse_sdkandPowerPlatform.Dataversepackages - Added comprehensive docstrings to
HttpClientclass and utility functions in the error handling module - Enhanced
pyproject.tomlwith complete metadata, keywords, project URLs, dev dependencies, and linting tool configurations
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/dataverse_sdk/py.typed | Adds PEP 561 marker file to enable type checking for the dataverse_sdk package |
| src/PowerPlatform/Dataverse/py.typed | Adds PEP 561 marker file to enable type checking for the PowerPlatform.Dataverse package |
| src/PowerPlatform/Dataverse/core/http.py | Adds module-level and comprehensive class/method docstrings for HttpClient with Sphinx-style formatting |
| src/PowerPlatform/Dataverse/core/error_codes.py | Adds module-level docstring and detailed function docstrings for utility functions |
| pyproject.toml | Enhances package metadata with keywords, classifiers, project URLs, optional dev dependencies, and linting tool configurations |
π‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@suyask-msft I've opened a new pull request, #46, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: suyask-msft <158708948+suyask-msft@users.noreply.github.com>
- Change license from {text: 'MIT'} to 'MIT' (newer setuptools format)
- Remove license classifier to avoid conflicts with license field
- Verified package builds successfully with py.typed included
Remove trailing whitespace in pyproject.toml
π¦ Microsoft Python Standards Compliance
This PR adds comprehensive Microsoft Python package standards compliance to enhance developer experience and meet enterprise requirements.
β Changes Made:
py.typedmarkers for both packages to enable full type checking supportpyproject.tomlwith complete package metadata, keywords, and project URLsHttpClientclass and utility functionsπ― Benefits:
π§ͺ Testing:
Made sure all existing tests pass!