Skip to content
Permalink
Browse files

tools: python: update flake8 rules

* Tree-factor location of some *.py files for easy demarcation of
  areas to exclude.

PR-URL: #25614
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information...
refack committed Apr 11, 2019
1 parent 914d6c9 commit 0befda69703e1599ab712d560984c27b251f1c62
Showing with 9 additions and 13 deletions.
  1. +2 −2 .flake8
  2. +4 −4 node.gyp
  3. +1 −1 src/inspector/node_inspector.gypi
  4. +1 −0 test/fixtures/wpt/.gitignore
  5. +0 −3 test/fixtures/wpt/encoding/resources/single-byte-raw.py
  6. +0 −3 test/fixtures/wpt/encoding/resources/text-plain-charset.py
  7. 0 tools/{ → inspector_protocol}/jinja2/AUTHORS
  8. 0 tools/{ → inspector_protocol}/jinja2/Jinja2-2.10.tar.gz.md5
  9. 0 tools/{ → inspector_protocol}/jinja2/Jinja2-2.10.tar.gz.sha512
  10. 0 tools/{ → inspector_protocol}/jinja2/LICENSE
  11. 0 tools/{ → inspector_protocol}/jinja2/OWNERS
  12. 0 tools/{ → inspector_protocol}/jinja2/README.chromium
  13. 0 tools/{ → inspector_protocol}/jinja2/__init__.py
  14. 0 tools/{ → inspector_protocol}/jinja2/_compat.py
  15. 0 tools/{ → inspector_protocol}/jinja2/_identifier.py
  16. 0 tools/{ → inspector_protocol}/jinja2/asyncfilters.py
  17. 0 tools/{ → inspector_protocol}/jinja2/asyncsupport.py
  18. 0 tools/{ → inspector_protocol}/jinja2/bccache.py
  19. 0 tools/{ → inspector_protocol}/jinja2/compiler.py
  20. 0 tools/{ → inspector_protocol}/jinja2/constants.py
  21. 0 tools/{ → inspector_protocol}/jinja2/debug.py
  22. 0 tools/{ → inspector_protocol}/jinja2/defaults.py
  23. 0 tools/{ → inspector_protocol}/jinja2/environment.py
  24. 0 tools/{ → inspector_protocol}/jinja2/exceptions.py
  25. 0 tools/{ → inspector_protocol}/jinja2/ext.py
  26. 0 tools/{ → inspector_protocol}/jinja2/filters.py
  27. 0 tools/{ → inspector_protocol}/jinja2/get_jinja2.sh
  28. 0 tools/{ → inspector_protocol}/jinja2/idtracking.py
  29. 0 tools/{ → inspector_protocol}/jinja2/jinja2.gni
  30. 0 tools/{ → inspector_protocol}/jinja2/lexer.py
  31. 0 tools/{ → inspector_protocol}/jinja2/loaders.py
  32. 0 tools/{ → inspector_protocol}/jinja2/meta.py
  33. 0 tools/{ → inspector_protocol}/jinja2/nativetypes.py
  34. 0 tools/{ → inspector_protocol}/jinja2/nodes.py
  35. 0 tools/{ → inspector_protocol}/jinja2/optimizer.py
  36. 0 tools/{ → inspector_protocol}/jinja2/parser.py
  37. 0 tools/{ → inspector_protocol}/jinja2/runtime.py
  38. 0 tools/{ → inspector_protocol}/jinja2/sandbox.py
  39. 0 tools/{ → inspector_protocol}/jinja2/tests.py
  40. 0 tools/{ → inspector_protocol}/jinja2/utils.py
  41. 0 tools/{ → inspector_protocol}/jinja2/visitor.py
  42. 0 tools/{ → inspector_protocol}/markupsafe/AUTHORS
  43. 0 tools/{ → inspector_protocol}/markupsafe/LICENSE
  44. 0 tools/{ → inspector_protocol}/markupsafe/MarkupSafe-0.18.tar.gz.md5
  45. 0 tools/{ → inspector_protocol}/markupsafe/MarkupSafe-0.18.tar.gz.sha512
  46. 0 tools/{ → inspector_protocol}/markupsafe/OWNERS
  47. 0 tools/{ → inspector_protocol}/markupsafe/README.chromium
  48. 0 tools/{ → inspector_protocol}/markupsafe/__init__.py
  49. 0 tools/{ → inspector_protocol}/markupsafe/_compat.py
  50. 0 tools/{ → inspector_protocol}/markupsafe/_constants.py
  51. 0 tools/{ → inspector_protocol}/markupsafe/_native.py
  52. 0 tools/{ → inspector_protocol}/markupsafe/_speedups.c
  53. 0 tools/{ → inspector_protocol}/markupsafe/get_markupsafe.sh
  54. +1 −0 tools/{ → js2c_macros}/check_macros.py
  55. 0 tools/{ → js2c_macros}/dcheck_macros.py
  56. 0 tools/{ → js2c_macros}/nodcheck_macros.py
  57. 0 {src → tools/js2c_macros}/notrace_macros.py
@@ -1,3 +1,3 @@
[flake8]
exclude=.git,deps,lib,src,test/fixtures,tools/*_macros.py,tools/gyp,tools/inspector_protocol,tools/jinja2,tools/markupsafe,tools/pip,tools/v8_gypfiles/broken
select=E901,E999,F821,F822,F823
exclude=.git,deps,lib,src,tools/gyp,tools/inspector_protocol,tools/pip,tools/v8_gypfiles/broken
select=E9,F82
@@ -805,20 +805,20 @@
'inputs': [
'<@(library_files)',
'config.gypi',
'tools/check_macros.py'
'tools/js2c_macros/check_macros.py'
],
'outputs': [
'<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc',
],
'conditions': [
[ 'node_use_dtrace=="false" and node_use_etw=="false"', {
'inputs': [ 'src/notrace_macros.py' ]
'inputs': [ 'tools/js2c_macros/notrace_macros.py' ]
}],
[ 'node_debug_lib=="false"', {
'inputs': [ 'tools/nodcheck_macros.py' ]
'inputs': [ 'tools/js2c_macros/nodcheck_macros.py' ]
}],
[ 'node_debug_lib=="true"', {
'inputs': [ 'tools/dcheck_macros.py' ]
'inputs': [ 'tools/js2c_macros/dcheck_macros.py' ]
}]
],
'action': [
@@ -97,7 +97,7 @@
'action': [
'python',
'tools/inspector_protocol/code_generator.py',
'--jinja_dir', '<@(protocol_tool_path)/..',
'--jinja_dir', '<@(protocol_tool_path)',
'--output_base', '<(SHARED_INTERMEDIATE_DIR)/src/',
'--config', 'src/inspector/node_protocol_config.json',
],
@@ -0,0 +1 @@
*.py

This file was deleted.

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,3 +1,4 @@
# flake8: noqa
macro CHECK(x) = do { if (!(x)) (process._rawDebug("CHECK: x == true"), process.abort()) } while (0);
macro CHECK_EQ(a, b) = CHECK((a) === (b));
macro CHECK_GE(a, b) = CHECK((a) >= (b));
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0befda6

Please sign in to comment.
You can’t perform that action at this time.