Skip to content

Commit 760030d

Browse files
committed
chore: rename whitelist to ignorelist
Let's try to be more respectful to everyone, and specially in this case even more clear.
1 parent af2a709 commit 760030d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

flake8_builtins.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from flake8 import utils as stdin_utils
77

8-
WHITE_LIST = {
8+
IGNORE_LIST = {
99
'__name__',
1010
'__doc__',
1111
'credits',
@@ -35,7 +35,7 @@ def __init__(self, tree, filename):
3535

3636
def add_options(option_manager):
3737
option_manager.add_option(
38-
'--builtins-whitelist',
38+
'--builtins-ignorelist',
3939
metavar='builtins',
4040
parse_from_config=True,
4141
comma_separated_list=True,
@@ -45,11 +45,11 @@ def add_options(option_manager):
4545
def parse_options(option_manager, options, args):
4646
global BUILTINS
4747

48-
if options.builtins_whitelist is not None:
49-
WHITE_LIST.update(options.builtins_whitelist)
48+
if options.builtins_ignorelist is not None:
49+
IGNORE_LIST.update(options.builtins_ignorelist)
5050

5151
BUILTINS = [
52-
a[0] for a in inspect.getmembers(builtins) if a[0] not in WHITE_LIST
52+
a[0] for a in inspect.getmembers(builtins) if a[0] not in IGNORE_LIST
5353
]
5454

5555
def run(self):

0 commit comments

Comments
 (0)