Skip to content

Commit

Permalink
chore: rename whitelist to ignorelist
Browse files Browse the repository at this point in the history
Let's try to be more respectful to everyone, and specially in this case
even more clear.
  • Loading branch information
gforcada committed Oct 8, 2022
1 parent af2a709 commit 760030d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flake8_builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from flake8 import utils as stdin_utils

WHITE_LIST = {
IGNORE_LIST = {
'__name__',
'__doc__',
'credits',
Expand Down Expand Up @@ -35,7 +35,7 @@ def __init__(self, tree, filename):

def add_options(option_manager):
option_manager.add_option(
'--builtins-whitelist',
'--builtins-ignorelist',
metavar='builtins',
parse_from_config=True,
comma_separated_list=True,
Expand All @@ -45,11 +45,11 @@ def add_options(option_manager):
def parse_options(option_manager, options, args):
global BUILTINS

if options.builtins_whitelist is not None:
WHITE_LIST.update(options.builtins_whitelist)
if options.builtins_ignorelist is not None:
IGNORE_LIST.update(options.builtins_ignorelist)

BUILTINS = [
a[0] for a in inspect.getmembers(builtins) if a[0] not in WHITE_LIST
a[0] for a in inspect.getmembers(builtins) if a[0] not in IGNORE_LIST
]

def run(self):
Expand Down

0 comments on commit 760030d

Please sign in to comment.