build,python: update flake8 rules
xrange
does not exist in python3 hence it's lint blocking https://github.com/nodejs/build/issues/1631, but it is not used in our codebase.
As I see it we have 3 options to unblock:
- float a patch and wait for https://github.com/web-platform-tests/wpt/pull/14973
- clean up directory of dead code
- ignore in https://github.com/nodejs/node/blob/f698386c7e988ef45027a75b2ff988899ee2af1d/Makefile#L1294-L1297
Personally, I prefer option 1.
/CC @nodejs/testing @nodejs/python
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines