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

chore: nicer tracebacks and dev improvements #1258

Merged
merged 4 commits into from Sep 25, 2022

Conversation

henryiii
Copy link
Contributor

@henryiii henryiii commented Sep 6, 2022

  • chore: drop [all] extra

This could be a hindrance to moving to static configuration, and isn't that useful or that great of an idea (the more deps in one environment, the more fragile it is). Let's just remove it.

  • chore(bin): remove ghapi requirement

We already require PyGitHub, and that's fully typed, so let's just use that. Also cleaned up this script (not sure if we really need it, but let's keep it nice as long as we have it).

  • chore: cleaner exception tracebacks

I wrote a flake8 check and description for this here: https://github.com/henryiii/flake8-errmsg. I'm not adding the check at the moment, just cleaning up the existing exceptions. I improved the text of a few exceptions, too. I think we shouldn't throw raw Exceptions, but should at least do RuntimeError, but I didn't change any exception types. Edit: it now supports setting a length if you'd rather not do this for very short messages. But I think it's fine to be consistent).

@henryiii henryiii changed the title fix: nicer tracebacks and dev improvements chore: nicer tracebacks and dev improvements Sep 9, 2022
Copy link
Contributor

@joerick joerick left a comment

Choose a reason for hiding this comment

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

Looks good, modulo a couple missing f-strings - suggestions below.

cibuildwheel/functools_cached_property_38.py Outdated Show resolved Hide resolved
cibuildwheel/logger.py Outdated Show resolved Hide resolved
henryiii and others added 4 commits September 16, 2022 11:05
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Joe Rickerby <joerick@mac.com>
@joerick joerick merged commit f766904 into pypa:main Sep 25, 2022
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.

None yet

2 participants