Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Fix the Python Syntax Error that is causing LGTM to fail #880

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

Closed
wants to merge 3 commits into from

Conversation

cclauss
Copy link
Member

@cclauss cclauss commented Jun 6, 2019

Fixes #425

The elif in the current solution will never be executed.

The __elif__ in this solution will __never__ be executed.
@StephenGemin
Copy link
Contributor

I'm seeing the same thing for a pull request I submitted yesterday. I made the update in my branch, but it won't it still fails the LGTM check.

Elif statement is in Project Euler/Problem 01/sol5.py

@cclauss
Copy link
Member Author

cclauss commented Jun 8, 2019

The folks at LGTM tried to explain it to me but I do not understand their explanation. A real test runner would be preferable to LGTM.

https://discuss.lgtm.com/t/tests-are-not-automatically-run-when-lgtm-yml-is-modified/1446/5

Also see #425 (comment)

@shuklalok
Copy link
Contributor

The solution, too, is incorrect. Problem statement is "Find the sum of all the multiples of 3 or 5 below 1000."

@cclauss
Copy link
Member Author

cclauss commented Jun 8, 2019

print(sum(i if 0 in (i % 3, i % 5) else 0 for i in range(1000)))
233168

@poyea
Copy link
Member

poyea commented Jun 8, 2019

Thanks again, this is done by #882. I've pushed this to that PR.

@poyea poyea closed this Jun 8, 2019
@cclauss cclauss deleted the patch-1 branch June 8, 2019 15:08
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 participants