flake8-variables-names icon indicating copy to clipboard operation
flake8-variables-names copied to clipboard

Add custom blacklist, that can be configured via flake8 argument and in setup.cfg

Open Melevir opened this issue 4 years ago • 5 comments

Now blacklists are builtin, they should be configured.

Melevir avatar May 04 '20 13:05 Melevir

Hi! I have made a PR #8 @Melevir could you please review it :)

lowitea avatar Oct 01 '20 23:10 lowitea

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!

joseguerr avatar Sep 14 '21 22:09 joseguerr

Hi! My PR was not merged, I eventually just closed it.

lowitea avatar Sep 15 '21 08:09 lowitea

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

joseguerr avatar Sep 15 '21 23:09 joseguerr

Unfortunately, I do not know of any other plugins. I will try to contact the maintainers of this plugin and rediscover my PR.

lowitea avatar Sep 16 '21 08:09 lowitea