Skip to content
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

Upgrade Schema library to fix prior formatting issue [don't merge] #64

Merged
merged 5 commits into from
Jan 22, 2024

Conversation

sritchie
Copy link
Collaborator

@sritchie sritchie commented Jul 31, 2020

This PR upgrades Schema and fixes a couple of outdated issues with internally defined schemas.

# problem only occurs for callable validators.

Directory = s.Or(
Directory = s.Schema(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

THIS is the good change that we wanted from this upgrade.

@sritchie sritchie force-pushed the sritchie/fix_schema branch from 0db6b3b to 591c227 Compare July 31, 2020 13:01
setup.py Outdated
'urllib3>=1.25.7',
'yaspin>=0.16.0',
# This is not a real dependency of ours, but we need it to override the
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is incidental, but nice.

s.Optional("gpu", default=list): [str],
s.Optional("cpu", default=list): [str]
},
s.Schema([str]),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is a problem. We definitely shouldn't have to wrap any compound data structure in Schema to get it to work with a formatting string. If we don't do this, we see:

keleshev/schema#240

@codecov
Copy link

codecov bot commented Jul 31, 2020

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@01740eb). Click here to learn what that means.

❗ Current head 83d8d88 differs from pull request most recent head f6abbc9. Consider uploading reports for the commit f6abbc9 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #64   +/-   ##
=======================================
  Coverage        ?   52.85%           
=======================================
  Files           ?       33           
  Lines           ?     3557           
  Branches        ?        0           
=======================================
  Hits            ?     1880           
  Misses          ?     1677           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sritchie sritchie merged commit 8925b67 into main Jan 22, 2024
6 of 7 checks passed
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.

1 participant