Skip to content

Commit 73bb5e6

Browse files
maggiemossmeta-codesync[bot]
authored andcommitted
Suppress existing NoFileBasedResourceAccess violations in torchx and gen_ai (meta-pytorch#1254)
Summary: X-link: https://github.com/fairinternal/unified_parallelism/pull/18 Pull Request resolved: meta-pytorch#1254 Reviewed By: kiukchung, AbishekS Differential Revision: D96217265
1 parent be13e2e commit 73bb5e6

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎torchx/runner/test/api_test.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class resource:
5252

5353

5454
def get_full_path(name: str) -> str:
55+
# lint-fixme: NoFileBasedResourceAccess
5556
return os.path.join(os.path.dirname(__file__), "resource", name)
5657

5758

‎torchx/specs/test/file_linter_test.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def _test_invalid_fn_with_varags_and_kwargs(*args, id: int) -> AppDef:
151151

152152

153153
def current_file_path() -> str:
154+
# lint-fixme: NoFileBasedResourceAccess
154155
return os.path.join(os.path.dirname(__file__), __file__)
155156

156157

‎torchx/specs/test/finder_test.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def test_load_builtin_echo(self) -> None:
193193

194194

195195
def current_file_path() -> str:
196+
# lint-fixme: NoFileBasedResourceAccess
196197
return os.path.join(os.path.dirname(__file__), __file__)
197198

198199

0 commit comments

Comments
 (0)