meson/mesonbuild/ast
Dylan Baker 2d349eae8c
pylint: enable the set_membership plugin
Which adds the `use-set-for-membership` check. It's generally faster in
python to use a set with the `in` keyword, because it's a hash check
instead of a linear walk, this is especially true with strings, where
it's actually O(n^2), one loop over the container, and an inner loop of
the strings (as string comparison works by checking that `a[n] == b[n]`,
in a loop).

Also, I'm tired of complaining about this in reviews, let the tools do
it for me :)
2022-11-30 16:23:29 -05:00
..
__init__.py ast: rename module constant to match PEP8 style 2022-06-01 22:49:10 -04:00
interpreter.py pylint: enable unnecessary-comprehension 2022-10-03 00:14:43 -04:00
introspection.py pylint: enable the set_membership plugin 2022-11-30 16:23:29 -05:00
postprocess.py move various unused typing-only imports into type-checking blocks 2022-07-03 14:11:31 -04:00
printer.py pylint: enable unnecessary-comprehension 2022-10-03 00:14:43 -04:00
visitor.py move various unused typing-only imports into type-checking blocks 2022-07-03 14:11:31 -04:00