File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 2
2
We want to make contributing to this project as easy and transparent as
3
3
possible.
4
4
5
- ## Our Development Process
6
- ... (in particular how this is synced with internal changes to the project)
7
-
8
5
## Pull Requests
9
6
We actively welcome your pull requests.
10
7
@@ -15,6 +12,13 @@ We actively welcome your pull requests.
15
12
5 . Make sure your code lints.
16
13
6 . If you haven't already, complete the Contributor License Agreement ("CLA").
17
14
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
+
18
22
## Contributor License Agreement ("CLA")
19
23
In order to accept your pull request, we need you to submit a CLA. You only need
20
24
to do this once to work on any of Meta's open source projects.
Original file line number Diff line number Diff line change 12
12
import torch
13
13
from torch import nn
14
14
from torch .distributed ._composable .fsdp import (
15
- fully_shard ,
16
15
CPUOffloadPolicy ,
17
16
OffloadPolicy ,
17
+ fully_shard ,
18
18
)
19
19
from torch .testing ._internal .common_distributed import skip_if_lt_x_gpu
20
20
from torch .testing ._internal .common_fsdp import FSDPTest
You can’t perform that action at this time.
0 commit comments