Skip to content

service: Enable type checking for tracelogging#1123

Merged
bkeryan merged 9 commits intomainfrom
users/bkeryan/update-tracelogging
May 6, 2025
Merged

service: Enable type checking for tracelogging#1123
bkeryan merged 9 commits intomainfrom
users/bkeryan/update-tracelogging

Conversation

@bkeryan
Copy link
Copy Markdown
Collaborator

@bkeryan bkeryan commented May 5, 2025

What does this Pull Request accomplish?

Update the traceloggingdynamic package in poetry.lock.

Remove ignore_missing_imports for traceloggingdynamic.

Fix a couple of typing errors in the _tracelogging submodule.

Why should this Pull Request be merged?

I contributed a change to add a py.typed marker file to the traceloggingdynamic package and it has been published to PyPI: microsoft/tracelogging#74

What testing has been done?

Ran poetry run nps lint and poetry run mypy

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2025

Test Results

    52 files  +  8      52 suites  +8   1h 17m 2s ⏱️ + 7m 4s
   709 tests ±  0     709 ✅ +  1      0 💤 ±0  0 ❌  - 1 
21 420 runs  +248  20 344 ✅ +249  1 076 💤 ±0  0 ❌  - 1 

Results for commit a39f675. ± Comparison against base commit 65d348e.

♻️ This comment has been updated with latest results.

Comment thread packages/service/ni_measurement_plugin_sdk_service/_tracelogging.py
Comment thread packages/service/ni_measurement_plugin_sdk_service/_tracelogging.py Outdated
Comment thread packages/service/pyproject.toml
@bkeryan bkeryan merged commit 45f53e6 into main May 6, 2025
17 checks passed
@bkeryan bkeryan deleted the users/bkeryan/update-tracelogging branch May 6, 2025 16:22
bkeryan added a commit that referenced this pull request Jun 23, 2025
* service: Remove ignore_missing_imports for traceloggingdynamic

* service: Update traceloggingdynamic in poetry.lock

* service: Fix _tracelogging typing bugs

* service: Only try to import traceloggingdynamic on Windows

* service: Install traceloggingdynamic as a dev dependency on Linux for type checking

* service: Update poetry.lock

* Revert "service: Only try to import traceloggingdynamic on Windows"

This reverts commit 8215a0e.

* service: Try to import traceloggingdynamic on all platforms for type hints, but only create a provider on Windows

* service: Import traceloggingdynamic on Windows and when type checking

(cherry picked from commit 45f53e6)
bkeryan added a commit that referenced this pull request Jun 24, 2025
* service: Remove ignore_missing_imports for traceloggingdynamic

* service: Update traceloggingdynamic in poetry.lock

* service: Fix _tracelogging typing bugs

* service: Only try to import traceloggingdynamic on Windows

* service: Install traceloggingdynamic as a dev dependency on Linux for type checking

* service: Update poetry.lock

* Revert "service: Only try to import traceloggingdynamic on Windows"

This reverts commit 8215a0e.

* service: Try to import traceloggingdynamic on all platforms for type hints, but only create a provider on Windows

* service: Import traceloggingdynamic on Windows and when type checking

(cherry picked from commit 45f53e6)
bkeryan added a commit that referenced this pull request Jun 24, 2025
service: Enable type checking for tracelogging (#1123)

* service: Remove ignore_missing_imports for traceloggingdynamic

* service: Update traceloggingdynamic in poetry.lock

* service: Fix _tracelogging typing bugs

* service: Only try to import traceloggingdynamic on Windows

* service: Install traceloggingdynamic as a dev dependency on Linux for type checking

* service: Update poetry.lock

* Revert "service: Only try to import traceloggingdynamic on Windows"

This reverts commit 8215a0e.

* service: Try to import traceloggingdynamic on all platforms for type hints, but only create a provider on Windows

* service: Import traceloggingdynamic on Windows and when type checking

(cherry picked from commit 45f53e6)
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.

2 participants