From 760030df544102d2f5720ddaacd27fd46fdfc80f Mon Sep 17 00:00:00 2001 From: Gil Forcada Codinachs Date: Sat, 8 Oct 2022 15:41:25 +0200 Subject: [PATCH] chore: rename whitelist to ignorelist Let's try to be more respectful to everyone, and specially in this case even more clear. --- flake8_builtins.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flake8_builtins.py b/flake8_builtins.py index 294fe71..dfc7037 100644 --- a/flake8_builtins.py +++ b/flake8_builtins.py @@ -5,7 +5,7 @@ from flake8 import utils as stdin_utils -WHITE_LIST = { +IGNORE_LIST = { '__name__', '__doc__', 'credits', @@ -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, @@ -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):