Flake8's INI config file format requires commas after each line. Because our file didn't have them, the exclude list wasn't set up correctly, and the --extend-exclude flag wasn't working. This PR fixes the .flake8 file. Also, update flake8 to the latest version available (because version 3.8 is required to get the --extend-exclude flag) and use the flag to exclude the files in the scripts/ directory from the python2 linter (since the scripts are python3).
25 lines
489 B
INI
25 lines
489 B
INI
[flake8]
|
|
ignore =
|
|
E111, # Indentation is not a multiple of four
|
|
E114, # Indentation is not a multiple of four (comment)
|
|
E501, # Line too long
|
|
E121, # Continuation line under-indented for hanging indent
|
|
E722 # bare excepts
|
|
E741, # Variable names such as 'l', 'O', or 'I'
|
|
exclude =
|
|
./llvm,
|
|
./gnu,
|
|
./upstream,
|
|
./fastcomp,
|
|
./fastcomp-clang,
|
|
./releases,
|
|
./clang,
|
|
./emscripten,
|
|
./binaryen,
|
|
./git,
|
|
./node,
|
|
./python,
|
|
./temp,
|
|
./downloads,
|
|
./crunch,
|