-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
PyPy support #78
PyPy support #78
Conversation
c3c93cb
to
16feefc
Compare
16feefc
to
3b07469
Compare
Not sure what would be the best way to handle |
Hmm. Could we just use the PyPy-compatible version unconditionally? Otherwise I'd try to work |
It seems like there should still be a condition as for the CPython version we need to call |
1ab0e74
to
23e4409
Compare
So, the in-class condition worked :) Also, I moved the import together with the |
23e4409
to
95e5d3d
Compare
95e5d3d
to
a4d7bb1
Compare
Introducing these implementation-specific branches affects the code coverage requirements. At the moment, I see these options to fixing the CI:
Am I missing something? What do you think about this? |
I'm happy to just I am a little concerned by the uncovered code in |
05e19c6
to
cb7a1f2
Compare
cb7a1f2
to
9bce86a
Compare
I added a couple of changes :) Re: coverage changes. Interestingly, these lines ( |
I'm pretty sure that this failure in PyPy36 is a real failure of canonicalisation rather than a pypy-specific failure; I'll dig in and confirm with either a fix or a workaround later this week 😄 Failed validating 'oneOf' in schema['properties']['requireDotNotation']:
{'description': 'Requires member expressions to use dot notation when '
'possible.',
'oneOf': [{'type': 'boolean'},
{'const': None},
{'description': 'An object that contains an "allExcept" key '
'equal to an array of exception values.',
'properties': {'allExcept': {'description': 'Array of '
'quoted '
'keywords to '
'exempt.',
'items': {'oneOf': [{'description': 'Allow '
'quoted '
'identifiers '
'made '
'of '
'reserved '
'words.',
'enum': ['keywords']},
{'description': 'Allow '
'quoted '
'snake '
'cased '
'identifiers.',
'enum': ['snake_case']}],
'type': 'string'},
'minItems': 0,
'type': 'array',
'uniqueItems': True}},
'type': 'object'},
{'description': 'Deprecated in favor of the object '
'"allExcept": ["snake_case"] rule format.',
'oneOf': [{'description': 'Allow quoted snake cased '
'identifiers.',
'enum': ['except_snake_case']}],
'type': 'string'}],
'type': ['boolean', 'null', 'object', 'string']}
On instance['requireDotNotation']:
'except_snake_case'
---------------------------------- Hypothesis ----------------------------------
Falsifying example: test_can_generate_for_real_large_schema(
data=data(...), name='JSCS configuration file',
)
JSCS configuration file
Draw 1: {'requireDotNotation': 'except_snake_case'} Which means that pypy support is almost here! Thanks @Stranger6667! |
Cool! Thank you @Zac-HD :) |
Resolves #77