Repository navigation
Add a schema file for the configuration file - #435
Merged
Merged
Conversation
…files. Updated the dataclasses with annotations to provide descriptions.
… for the serial config options. Removed the requirement for the type and title on every property, since that data just got in the way when using the IDE auto-complete feature.
Also updated docs to indicate that the address of a device should be expressed as a string in the config file.
…n file is modified
…ig files. Also, added a step to check that the generated schema has valid links
# Conflicts: # docs/configuration.md # pyproject.toml # src/tm_devices/helpers/constants_and_dataclasses.py
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #435 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 161 161
Lines 4718 4734 +16
Branches 431 431
=========================================
+ Hits 4718 4734 +16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| PACKAGE_NAME: Final[str] = "tm_devices" | ||
| """Constant string with the name of this package.""" | ||
|
|
||
| VISA_RESOURCE_EXPRESSION_REGEX: "Final[re.Pattern[str]]" = re.compile( # pylint: disable=unsubscriptable-object,useless-suppression |
Check notice
Code scanning / CodeQL
Unused global variable
nfelt14
marked this pull request as ready for review
May 16, 2025 00:47
nfelt14
requested review from
ArunKumarTek,
ldantek,
michaelwagoner and
v12ganesh
May 16, 2025 00:48
Breaking API Changes |
Test Results (macos)
|
Test Results (windows)
|
Test Results (ubuntu)
|
nfelt14
enabled auto-merge (squash)
May 16, 2025 16:56
ldantek
approved these changes
May 16, 2025
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
This adds a schema file that can be used to provide auto-complete and help when working in the config file. It will also require a PR to the https://github.com/SchemaStore/schemastore repo to add the schema file to the list of schemas so that all users can benefit from the schema file.
Addresses #338
Types of changes
What types of changes does your code introduce?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Addresses #<issue_number>