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

Make error formatter configurable #10

Open
Qqwy opened this issue Jul 6, 2020 · 0 comments
Open

Make error formatter configurable #10

Qqwy opened this issue Jul 6, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@Qqwy
Copy link
Owner

Qqwy commented Jul 6, 2020

The formatter itself has already been split into a separate module to allow this in the future.

However, we still need to provide a configuration setting. My current idea is to:

  • Have a global setting
  • Be able to override it per module
  • Be able to override it per spec
  • Be able to override it by passing in explicit options to conform and friends.

The other thing we'd want is to make new formatters test-able. For this, also see #3 . We have a Formatter.problem_tuple type that will (once #3 is done) contain all possible problems that might occur for all wrong typechecks, therefore being a generator of all potential inputs of the formatter.
This will make it easy to property-test custom formatters.

@Qqwy Qqwy added this to the Stable version milestone Jul 6, 2020
@Qqwy Qqwy added the enhancement New feature or request label Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant