Flakes8 module which is used for checking python best coding practices is not working

raise value
flake8.exceptions.PluginRequestedUnknownParameters: "pycodestyle" requested unknown parameters causing 'Fileprocessor' object has no attribute 'indent_size'

when flake8 command was run inside the virtual environment.