flake8-variables-names
flake8-variables-names copied to clipboard
Add custom blacklist, that can be configured via flake8 argument and in setup.cfg
Now blacklists are builtin, they should be configured.
Hi! I have made a PR #8 @Melevir could you please review it :)
Hey there,
Is it possible to add an example in your readme file or even in the setup.cfg how to add a custom word to the blacklist?
I have tried to add 'df' and 'result' into in my custom blacklist but so far, with no success. Here are the lines that I have tried to add into my .flake8 config file: custom_bad_names = df,result custom-bad-names = df,result add-bad-varnames = df,result add_bad_varnames = df,result variable_names_blacklist = df,result variable-names-blacklist = df,result custom_bad_names = {'df', 'result'} custom-bad-names = {'df', 'result'} add-bad-varnames = {'df', 'result'} add_bad_varnames = {'df', 'result'} variable_names_blacklist = {'df', 'result'} variable-names-blacklist = {'df', 'result'}
Many thanks!
Hi! My PR was not merged, I eventually just closed it.
Thanks @lowitea, appreciate your reply. At this point I'm considering to simple make the move to pylint. Do you happen to other flake8 plugin that implements this behaviour?
Strange that no one gave you any sort of feedback on this one.. Cheers
Unfortunately, I do not know of any other plugins. I will try to contact the maintainers of this plugin and rediscover my PR.