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

fix parallel execution collecting a SyntaxError #1410

Merged
merged 1 commit into from Oct 11, 2021
Merged

Conversation

asottile
Copy link
Member

Resolves #1408

@@ -588,7 +590,7 @@ def process_tokens(self):
self.run_physical_checks(file_processor.lines[-1])
self.run_logical_checks()

def run_checks(self):
def run_checks(self) -> Tuple[str, Results, Dict[str, int]]:
Copy link
Member Author

Choose a reason for hiding this comment

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

we don't have a great way of testing the parallel mode in integration so I leveraged the type checker as a "test" instead

@asottile asottile merged commit 0fac346 into main Oct 11, 2021
@asottile asottile deleted the parallel-syntax-error branch October 11, 2021 12:32
@asottile asottile modified the milestones: 4.0.0, 4.0.1 Oct 11, 2021
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.

4.0.0 crashes with TypeError
1 participant