-
-
Notifications
You must be signed in to change notification settings - Fork 7
Make as card check format #534
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
base: main
Are you sure you want to change the base?
Make as card check format #534
Conversation
|
✅ All contributors have signed the CLA |
|
I have read the CLA Document and I hereby sign the CLA |
087a156 to
f4f5ec2
Compare
Co-authored-by: Davide Garolini <dgarolini@gmail.com> Signed-off-by: Kieran Martin <kieranjmartin@gmail.com>
Co-authored-by: Davide Garolini <dgarolini@gmail.com> Signed-off-by: Kieran Martin <kieranjmartin@gmail.com>
Co-authored-by: Davide Garolini <dgarolini@gmail.com> Signed-off-by: Kieran Martin <kieranjmartin@gmail.com>
Co-authored-by: Davide Garolini <dgarolini@gmail.com> Signed-off-by: Kieran Martin <kieranjmartin@gmail.com>
Co-authored-by: Davide Garolini <dgarolini@gmail.com> Signed-off-by: Kieran Martin <kieranjmartin@gmail.com>
Co-authored-by: Davide Garolini <dgarolini@gmail.com> Signed-off-by: Kieran Martin <kieranjmartin@gmail.com>
Co-authored-by: Davide Garolini <dgarolini@gmail.com> Signed-off-by: Kieran Martin <kieranjmartin@gmail.com>
Co-authored-by: Davide Garolini <dgarolini@gmail.com> Signed-off-by: Kieran Martin <kieranjmartin@gmail.com>
bzkrouse
left a comment
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.
looks great to me!
|
Thanks @kieranjmartin ! Can you add a news entry and we'll merge? |
Done :) |
Resolves #514
Incorportating
check_ard_structureintoas_cardproved to not be straight forwards asas_cardis used throughout the code base to coerce objects into a card class that do not pass the checks incheck_ard_structure.For now at least I did the following
check_ard_structurecan either error or warn based on user input. I made a function to switch between these (I couldn't see any function which existed to do this already). Part of me wonders about allowing the user a bit more control over what it considers an error or a warning; they can switch off caring about the column order, and whether there is a methods entry, but maybe we could allow more in future. That said I think it's probably better as a binary switch for a changeas_card, there is now an argument for whether you want to check if a card follows this structure. At the moment this defaults to TRUE, but if you think this is too strong I could switch it to default FALSE. Doing that would be the most low impact change.