Skip to content

Conversation

@fpacifici
Copy link
Contributor

Removes the jsonschema initially committed since we download the schema during make develop and avoid accidentally merge the schema downloaded during make.

Also runs mypy right after downloading the schema. If the schema is not there, malformed or in the wrong place mypy fails with code 2. Then make will fail instead of silently be ok until we run it later.

@fpacifici fpacifici requested a review from a team as a code owner August 5, 2020 23:40
Makefile Outdated
install-python-dependencies:
pip install -e .

fetchschemas:
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is now doing more than fetching -- and the fetching is really now serves secondary purpose -- should we rename it to "typecheck" or "mypy"?

Copy link
Contributor Author

@fpacifici fpacifici Aug 6, 2020

Choose a reason for hiding this comment

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

This is not really meant to typecheck. It does not show the output and it does not stop in case of conventional type errors. It runs mypy only to ensure the schema is there and intact and that the processor references the right file. If the file is missing or in the wrong place mypy fatals, exit status 2, while conventional type errors are status 1. We fail only if mypy exit status is greater than 1.

@fpacifici fpacifici merged commit ce6d4e2 into wip/jsonschema-mypy Aug 7, 2020
@fpacifici fpacifici deleted the feat/pin_release branch August 7, 2020 00:15
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.

3 participants