Skip to content

Conversation

StoicLoofah
Copy link
Collaborator

Fixing the failure from https://app.circleci.com/pipelines/github/ggtracker/sc2reader/56/workflows/26b5f9e8-b09e-4b41-ac18-4dbc023efab1/jobs/625

I noticed this issue cropped up since we haven't specified a black version here

- run: sudo pip install black codespell flake8

What do you guys think about letting it float as is versus specifying a version now that black is stable? https://github.com/psf/black/releases/tag/stable

I also updated the style guide docs a bit

STYLE_GUIDE.rst Outdated
@@ -18,10 +22,7 @@ All files should start with the following::
All imports should be absolute.


All string formatting sound be done in the following style::
All string formatting should be done in the following style::
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I actually wasn't sure if we should insist on .format or if we should support f-strings

Copy link
Collaborator

@cclauss cclauss Jan 31, 2022

Choose a reason for hiding this comment

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

pyupgrade will autoconvert to f-strings which are faster and easier to read.
https://www.scivision.dev/python-f-string-speed/

@StoicLoofah StoicLoofah merged commit 5b44de8 into ggtracker:upstream Feb 1, 2022
@StoicLoofah StoicLoofah deleted the fix_black_jan_31_2022 branch February 1, 2022 04:47
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.

2 participants