-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix magic comma and experimental string cache flags #2131
Conversation
@@ -273,9 +273,9 @@ class Mode: | |||
target_versions: Set[TargetVersion] = field(default_factory=set) | |||
line_length: int = DEFAULT_LINE_LENGTH | |||
string_normalization: bool = True | |||
is_pyi: bool = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made them the same order as they appear in the cache file name for ease of understanding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, once CI passes. Just changes file formatting ...
Co-authored-by: Cooper Lees <me@cooperlees.com>
@cooperlees I moved some code around in the tests to unbreak CI, could you take another look? It turned out the DEFAULT_MODE in tests wasn't the same as the actual default on the command-line, which seemed wrong. To fix it I explicitly turned on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fixes make sense to me, but would love a second look from someone with a better handle on the cache and these tests implementation ...
Fixes #2130