-
Notifications
You must be signed in to change notification settings - Fork 5
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
Double brackets using MW template format #2
Comments
It may be possible to avoid this by adding an option to only check calls which use |
To make it easier to skip other strings which might use `{}` (for example in regexes) it separates those strings where `format` is called and every other (apart from the docstrings which are already split). It now uses the code 103 which was previously used for cases when both implicit and explicit were used. Moved this into the 200 range using 205 as this makes it possible to ignore all 2.6 related issues by just adding `P1`. Also fixes the tests accordingly.
A similar problem occurring in MoinMoin |
The MW uses
{{…}}
for templates and{{:Bla}}
is a valid name which shouldn't be considered a problem. One way to mitigate (at the moment) would be to use{{ :Bla}}
because Python doesn't allow{ }.format(42)
.Another way would be to ignore constellations where there are an even number of brackets on each side as they aren't parsed but its number gets halved.
The text was updated successfully, but these errors were encountered: