Flake8 no longer supports ~/.config/flake8 as of version 4.0
Due to constant confusion by users, user-level Flake8 configuration files are no longer supported. Files will not be searched for in the user’s home directory (e.g., ~/.flake8) nor in the XDG config directory (e.g., ~/.config/flake8). (See also #1404).
Flake8 no longer supports
~/.config/flake8
as of version 4.04.0.0 Release Notes