Skip to content

Commit f192d99

Browse files
committed
feat: take into account --builtins option
1 parent 1fe5f6e commit f192d99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flake8_builtins.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ def parse_options(cls, options):
4848
cls.names = {
4949
a[0] for a in inspect.getmembers(builtins) if a[0] not in cls.ignore_list
5050
}
51+
flake8_builtins = getattr(options, 'builtins', None)
52+
if flake8_builtins:
53+
cls.names.update(flake8_builtins)
5154

5255
def run(self):
5356
tree = self.tree

0 commit comments

Comments
 (0)