-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add NOSTDINC and NOTORCHINC lintrunner #6693
Add NOSTDINC and NOTORCHINC lintrunner #6693
Conversation
Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6693
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 1 PendingAs of commit f862761 with merge base dc41596 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/) ghstack-source-id: 252107495 Pull Request resolved: #6693
This pull request was exported from Phabricator. Differential Revision: D65541332 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test that this works?
"**/*.h", | ||
"**/*.hpp", | ||
] | ||
exclude_patterns = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of exclude, can you just do include for runtime directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of exclude, can you just do include for runtime directory?
directories should be linted for this unless we know that they shouldn't be. We want this to fail closed.
Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/) [ghstack-poisoned]
Pull Request resolved: #6693 Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/) ghstack-source-id: 252628653
This pull request was exported from Phabricator. Differential Revision: D65541332 |
yes see internal diff test plan |
Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/) [ghstack-poisoned]
Pull Request resolved: #6693 Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. ghstack-source-id: 253169886 Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/)
This pull request was exported from Phabricator. Differential Revision: D65541332 |
Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/) [ghstack-poisoned]
Pull Request resolved: #6693 Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. ghstack-source-id: 253193810 Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/)
This pull request was exported from Phabricator. Differential Revision: D65541332 |
[ExecuTorch] Add NOSTDINC and NOTORCHINC lintrunner Pull Request resolved: #6693 Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. ghstack-source-id: 253193810 Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/) Co-authored-by: Scott Wolchok <[email protected]>
* [ExecuTorch] Remove PATTERNLINT suppressions Pull Request resolved: #6692 The linter these are suppressing was removed in D63859186. ghstack-source-id: 253169885 Differential Revision: [D65507718](https://our.internmc.facebook.com/intern/diff/D65507718/) * Add NOSTDINC and NOTORCHINC lintrunner (#6822) [ExecuTorch] Add NOSTDINC and NOTORCHINC lintrunner Pull Request resolved: #6693 Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. ghstack-source-id: 253193810 Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/) Co-authored-by: Scott Wolchok <[email protected]> --------- Co-authored-by: Scott Wolchok <[email protected]>
Stack from ghstack (oldest at bottom):
Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted.
Differential Revision: D65541332