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
Format python files with black #828
Format python files with black #828
Conversation
@trygveaa per your comment, here's a PR adding |
Thanks to @sudoforge in #828 for this.
Thanks! Since the checks in this PR were failing, I ran black myself and committed to master. Turns out the code hit a bug in black, so we had to run it twice, see psf/black#2055. |
Oof, sorry, I should have added a comment here but got caught up in other things. There actually appears to be an error on subsequent formatting (with python < 3), which is why the checks are failing. I did run with |
🤷♂️ it appears to work for you now, at least on |
How do you figure the issue is with python < 3? The checks were failing for all python versions. As I said, I had to run black twice, because running with |
When running locally on this tree, I am not able to recreate your experience with 3.9.2:
That's where my statement comes from. Perhaps I'm incorrect, or missing something obvious. In any case, I'm glad you got it sorted out! |
And just to show that it had nothing to do with the order of operations in my previous comment:
|
I should have mentioned this, but you need to touch or otherwise change/save the wee_slack.py file before you run black again. If not, black won't do anything when you run it again. I guess it has a cache of the last run time it checks against mtime or something. |
Ah, that's what I was missing, then. Well, glad you got it sorted out -- I'd been deferring digging in to this until I had more time in the next couple of weeks. |
No description provided.