Skip to content

Conversation

@d4l3k
Copy link
Member

@d4l3k d4l3k commented Nov 18, 2025

As titled. This allows users to run basic lint (clang-format and pyre for Python types) in OSS.

This recently was an issue in #57 as OSS contributors can't see lint results.

The adapters were largely copied from pytorch/pytorch and the versions+configs match fbcode.

For CI, we skip building the backends and only build the torchcomms frontend to check the py/pyi files.

Test plan:

pip install -v -e '.[dev]' --no-build-isolation
lintrunner init
lintrunner --all-files

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 18, 2025
@d4l3k d4l3k force-pushed the d4l3k/lint branch 3 times, most recently from 692d576 to 1e14ec0 Compare November 18, 2025 21:58
@arkadip-maitra
Copy link
Contributor

thanks

@d4l3k d4l3k force-pushed the d4l3k/lint branch 18 times, most recently from b15071a to 024b7f5 Compare November 25, 2025 19:25
@d4l3k d4l3k changed the title ci: add lintrunner for clang-format and pyrefly ci: add lintrunner for clang-format and pyre Nov 25, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 25, 2025

@d4l3k has imported this pull request. If you are a Meta employee, you can view this in D87880298.

@d4l3k d4l3k force-pushed the d4l3k/lint branch 3 times, most recently from 1e05067 to 5b5297d Compare December 2, 2025 20:17
Summary:
As titled. This allows users to run basic lint (clang-format and pyre for Python types) in OSS.

This recently was an issue in #57 as OSS contributors can't see lint results.

The adapters were largely copied from `pytorch/pytorch` and the versions+configs match fbcode.

For CI, we skip building the backends and only build the torchcomms frontend to check the py/pyi files.

Pull Request resolved: #60

Test Plan:
```
pip install -v -e '.[dev]' --no-build-isolation
lintrunner init
lintrunner --all-files
```

Reviewed By: amirafzali

Differential Revision: D87880298

Pulled By: d4l3k
@meta-codesync
Copy link

meta-codesync bot commented Dec 2, 2025

@d4l3k has exported this pull request. If you are a Meta employee, you can view the originating Diff in D87880298.

@d4l3k
Copy link
Member Author

d4l3k commented Dec 2, 2025

Failures seem unrelated

@meta-codesync
Copy link

meta-codesync bot commented Dec 2, 2025

@d4l3k merged this pull request in 147150e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants