4.2 Create a project configuration file for flake8

Create a file at root level of the project directory and name it as ".flake8".

Flake8 configuration options needs to be in the flake8 section. The following options used for EDK II flake8 configuration.

[flake8]
# H903  Windows style line endings not allowed in code
# E266 too many leading '#' for block comment
# D203 : One blank line required before class docstring
# H306  : imports not in alphabetical order
ignore = H903, E266, D203, H306
exclude = .git,
max-complexity = 10
max_line_length = 120