Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 66eb801

Browse files
msaroufimCopilot
andauthoredMay 12, 2025··
Forward fix lint (#2197)
* Forward fix lint * added some minor docs * Update CONTRIBUTING.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 34f66b6 commit 66eb801

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
 

‎CONTRIBUTING.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
We want to make contributing to this project as easy and transparent as
33
possible.
44

5-
## Our Development Process
6-
... (in particular how this is synced with internal changes to the project)
7-
85
## Pull Requests
96
We actively welcome your pull requests.
107

@@ -15,6 +12,13 @@ We actively welcome your pull requests.
1512
5. Make sure your code lints.
1613
6. If you haven't already, complete the Contributor License Agreement ("CLA").
1714

15+
## Linting
16+
17+
We use [ruff](https://beta.ruff.rs/docs/) for linting.
18+
1. `pip install ruff==0.11.6`
19+
2. `ruff check --fix`
20+
3. `ruff format .`
21+
1822
## Contributor License Agreement ("CLA")
1923
In order to accept your pull request, we need you to submit a CLA. You only need
2024
to do this once to work on any of Meta's open source projects.

‎test/test_low_bit_optim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import torch
1313
from torch import nn
1414
from torch.distributed._composable.fsdp import (
15-
fully_shard,
1615
CPUOffloadPolicy,
1716
OffloadPolicy,
17+
fully_shard,
1818
)
1919
from torch.testing._internal.common_distributed import skip_if_lt_x_gpu
2020
from torch.testing._internal.common_fsdp import FSDPTest

0 commit comments

Comments
 (0)
Please sign in to comment.