Skip to content

Commit 0befda6

Browse files
committed
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>
1 parent 914d6c9 commit 0befda6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+9
-13
lines changed

Diff for: β€Ž.flake8

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[flake8]
2-
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
3-
select=E901,E999,F821,F822,F823
2+
exclude=.git,deps,lib,src,tools/gyp,tools/inspector_protocol,tools/pip,tools/v8_gypfiles/broken
3+
select=E9,F82

Diff for: β€Žnode.gyp

+4-4
Original file line numberDiff line numberDiff line change
@@ -805,20 +805,20 @@
805805
'inputs': [
806806
'<@(library_files)',
807807
'config.gypi',
808-
'tools/check_macros.py'
808+
'tools/js2c_macros/check_macros.py'
809809
],
810810
'outputs': [
811811
'<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc',
812812
],
813813
'conditions': [
814814
[ 'node_use_dtrace=="false" and node_use_etw=="false"', {
815-
'inputs': [ 'src/notrace_macros.py' ]
815+
'inputs': [ 'tools/js2c_macros/notrace_macros.py' ]
816816
}],
817817
[ 'node_debug_lib=="false"', {
818-
'inputs': [ 'tools/nodcheck_macros.py' ]
818+
'inputs': [ 'tools/js2c_macros/nodcheck_macros.py' ]
819819
}],
820820
[ 'node_debug_lib=="true"', {
821-
'inputs': [ 'tools/dcheck_macros.py' ]
821+
'inputs': [ 'tools/js2c_macros/dcheck_macros.py' ]
822822
}]
823823
],
824824
'action': [

Diff for: β€Žsrc/inspector/node_inspector.gypi

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
'action': [
9898
'python',
9999
'tools/inspector_protocol/code_generator.py',
100-
'--jinja_dir', '<@(protocol_tool_path)/..',
100+
'--jinja_dir', '<@(protocol_tool_path)',
101101
'--output_base', '<(SHARED_INTERMEDIATE_DIR)/src/',
102102
'--config', 'src/inspector/node_protocol_config.json',
103103
],

Diff for: β€Žtest/fixtures/wpt/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.py

Diff for: β€Žtest/fixtures/wpt/encoding/resources/single-byte-raw.py

-3
This file was deleted.

Diff for: β€Žtest/fixtures/wpt/encoding/resources/text-plain-charset.py

-3
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.

Diff for: β€Žtools/check_macros.py renamed to β€Žtools/js2c_macros/check_macros.py

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

0 commit comments

Comments
Β (0)