-
Notifications
You must be signed in to change notification settings - Fork 19
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
[SIM908] False-positives for strings #126
Comments
Example
AST
|
@jonyscathe Please give me you output for those two commands:
It should look like this:
When I execute flake8 on your example, I get:
There is no SIM error message. That could be due to a Python/flake8 version, that has a different AST and is not affected by this issue. |
Nevermind, I can reproduce it: #128 :-) |
Ensure that the assigned name is equal to the name in the if.test See #126
Ensure that the assigned name is equal to the name in the if.test See #126
The issue should be fixed in |
I'm curious: Do you write a game? "resistance" sounds a bit like it :-) |
Also, why do you have so weird repository names like https://github.com/jonyscathe/sadasdddddddddddd ? |
Thanks for fixing this so quickly. I didn't realise I had any public repositories on github... not too sure what that is doing there! |
Oh, I understand 💡 Is it anything public that you wrote? Or something you would like to put on pypi but you need support to do so? |
It is a private project at this point - I don't own the IP for it myself. |
I understand. If it becomes free software at some point and you need help in packing it, you can ping me :-) |
Hey,
I have some code to modify a string.
The string will be a number with a letter at the end.
If the number has a decimal point in it, it swaps the letter to where the dot is.
For example '10k' will stay as '10k', but '4.7k' becomes '4k7'
There is probably a simpler way to do this, but currently the code for this is:
The if statement above is flagging SIM908 which I really think it shouldn't be
The text was updated successfully, but these errors were encountered: