Skip to content

Conversation

@guyp-descope
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a 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 fixes project ID initialization from environment variables and applies various linting fixes to improve code formatting consistency across the codebase.

Key changes:

  • Fixed project ID initialization to properly read from DESCOPE_PROJECT_ID environment variable in HTTPClient
  • Applied automatic code formatting fixes (line length, trailing commas, import ordering)
  • Removed unused imports

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
descope/http_client.py Added environment variable fallback for project_id initialization with improved error messaging
descope/auth.py Removed unused requests import
descope/management/tenant.py Fixed import ordering and formatting of method parameters
descope/management/common.py Added blank lines between class definitions per PEP 8
tests/test_http_client.py Added test case for project ID initialization from environment variable
tests/test_jwt_common.py Removed unused generate_auth_info import
tests/test_auth.py Applied formatting fixes to test methods (line breaks, trailing commas)
tests/management/test_tenant.py Applied formatting fixes to method call arguments

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@guyp-descope guyp-descope enabled auto-merge (squash) November 11, 2025 10:14
@github-actions
Copy link

github-actions bot commented Nov 11, 2025

Coverage report

The coverage rate went from 98.21% to 98.18% ⬇️

100% of new lines are covered.

Diff Coverage details (click to unfold)

descope/descope_client.py

100% of new lines are covered (97.82% of the complete file).

descope/management/tenant.py

100% of new lines are covered (100% of the complete file).

Copy link
Member

@itaihanski itaihanski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - one suggestion

@guyp-descope guyp-descope merged commit 7a67fd9 into main Nov 12, 2025
24 checks passed
@guyp-descope guyp-descope deleted the fix-project-id-by-env-var branch November 12, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants