-
Notifications
You must be signed in to change notification settings - Fork 267
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
Get mypy working again #1457
Get mypy working again #1457
Conversation
Need to test adding new exception handling. Will reopen. |
Looks like this is failing on coverage:
|
But why? That line is tested. Any idea? |
Could it be the |
I actually had assertRaises that I changed thinking perhaps it wanted to test the text of the error message. |
Ah, so get_data raises FileNotFoundError in my test case, but returns None for some other kinda failure. I'll figure it out. |
I chose to inject the dependency on
|
Oh, mypy is giving a lot more errors. I'm not sure why I thought it was resolved. Will reopen after addressing the others. |
Ah, this was passing locally. I'm gonna continue to test via CI / build |
Everything seems to be passing now. |
That's just the doc tests, you need to also build the docs by running |
You're right Marc, that's not documented at all. We should put it here right? https://axelrod.readthedocs.io/en/stable/how-to/contributing/running_tests.html#testing-the-documentation. I believe:
is what is needed. |
@drvinceknight yes that seems like a good place. Where are the commands that CI is running to build the docs? |
It's using the readthedocs config file which is here: https://github.com/Axelrod-Python/Axelrod/blob/dev/.readthedocs.yaml Here's info about the file itself: https://docs.readthedocs.io/en/stable/config-file/v2.html The rest is essentially done through the readthedocs configuration panel. As this isn't changing anything relevant to the docs how about we merge it, then I'll open a PR to fix the docs build? |
The fact that the other recent PRs pass rtd but not this one is weird... |
Resolves #1406