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

Run linters/docs on Windows and macOS #7520

Merged
merged 3 commits into from
Jan 1, 2020

Conversation

chrahunt
Copy link
Member

This ensures that contributors on any of the major platforms can run our
linting and doc building checks without any changes.

@chrahunt chrahunt added skip news Does not need a NEWS file entry (eg: trivial changes) type: maintenance Related to Development and Maintenance Processes labels Dec 28, 2019
@chrahunt chrahunt force-pushed the maint/cross-platform-lints branch from b8daede to f6fe88a Compare December 28, 2019 22:42
This ensures that contributors on any of the major platforms can run our
linting and doc building checks without any changes.
@chrahunt chrahunt force-pushed the maint/cross-platform-lints branch from f6fe88a to 4d1fd08 Compare December 28, 2019 22:43
Sphinx expects the "document name" field to be normalized with respect
to slashes (all /), so we now do this in a portable way for Windows.
Previously we were making unguarded calls to non-Windows-only APIs. Mypy
only automatically excludes these from platform-specific checks when
inside conditions.
@chrahunt chrahunt force-pushed the maint/cross-platform-lints branch from f6a33b3 to 8dc6919 Compare December 29, 2019 05:33
@chrahunt chrahunt marked this pull request as ready for review December 29, 2019 05:53
@chrahunt chrahunt mentioned this pull request Dec 29, 2019
@pradyunsg
Copy link
Member

Re mypy: how about an assert instead?

@chrahunt
Copy link
Member Author

In which case specifically?

@chrahunt chrahunt force-pushed the maint/cross-platform-lints branch 2 times, most recently from 3517432 to 8dc6919 Compare December 29, 2019 15:13
@chrahunt chrahunt requested a review from pradyunsg December 31, 2019 04:01
@pradyunsg pradyunsg removed their request for review December 31, 2019 07:09
@pradyunsg
Copy link
Member

Removing the request for my review, since I'm not sure if I'm the right person for reviewing this. That said, this does look OK to me.

In which case specifically?

I think that was a prematurely posted comment, sorry about that. I'm not sure what I was referring to there, since none of the call sites seem to be "not-windows" code paths.

@chrahunt
Copy link
Member Author

chrahunt commented Jan 1, 2020

Thank you for the reviews.

@chrahunt chrahunt merged commit ab7e476 into pypa:master Jan 1, 2020
@chrahunt chrahunt deleted the maint/cross-platform-lints branch January 4, 2020 01:05
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Feb 3, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation skip news Does not need a NEWS file entry (eg: trivial changes) type: maintenance Related to Development and Maintenance Processes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants