Skip to content

Commit

Permalink
feat: take into account --builtins option
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Dec 22, 2022
1 parent 1fe5f6e commit f192d99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flake8_builtins.py
Expand Up @@ -48,6 +48,9 @@ def parse_options(cls, options):
cls.names = {
a[0] for a in inspect.getmembers(builtins) if a[0] not in cls.ignore_list
}
flake8_builtins = getattr(options, 'builtins', None)
if flake8_builtins:
cls.names.update(flake8_builtins)

def run(self):
tree = self.tree
Expand Down

0 comments on commit f192d99

Please sign in to comment.