Skip to content

Commit 376640d

Browse files
committed
Update base for Attempt to fix linter on "[Test] Hack to enable optimizer/rewriter integration into dynamo_export"
- To test in torchbench. - Somehow lintrunner changed unrelated files in this commit. [ghstack-poisoned]
1 parent 36c33ae commit 376640d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.lintrunner.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ exclude_patterns = [
6161
'onnxscript/_legacy_ir/protobuilder.py', # FIXME
6262
'onnxscript/rewriter/onnxruntime/transformers/layernorm.py', # FIXME
6363
'onnxscript/ir/serde.py', # FIXME
64-
'onnxrewriter/rewriter/pattern/generic_pattern_test.py', # FIXME
64+
'onnxrewriter/rewriter/generic_pattern_test.py', # FIXME
65+
'onnxrewriter/rewriter/generic_pattern.py', # FIXME
6566
]
6667
command = [
6768
'python',
@@ -118,6 +119,7 @@ include_patterns = [
118119
'**/*.py',
119120
]
120121
exclude_patterns = [
122+
'examples/**', # TODO: Merge with docs/examples
121123
'docs/examples/**',
122124
'docs/tutorial/examples/**',
123125
'onnxscript/converter_test.py',

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ ignore-init-module-imports = true
196196

197197
[tool.ruff.per-file-ignores]
198198
"__init__.py" = ["TID252"] # Allow relative imports in init files
199-
"**/{examples,tests,docs,tools,utils}/*" = ["TID251"] # pathlib is allowed in supporting code
199+
"setup.py" = ["TID251"] # pathlib is allowed in supporting code
200+
"**/{examples,tests,docs,tools,utils,opgen}/*" = ["TID251"] # pathlib is allowed in supporting code
200201
"**/*_test.py" = ["TID251"] # pathlib is allowed in tests
201202
"**/generic_pattern.py" = ["FBT003", "UP037"] # inline ignoring fails
202203
"**/generic_pattern_test.py" = ["ARG001", "ARG002", "PLR2004"]

0 commit comments

Comments
 (0)