Skip to content

Commit ee7ae7d

Browse files
larryliu0820facebook-github-bot
authored andcommitted
Allow lintrunner to run internally (#533)
Summary: Pull Request resolved: #533 As titled, I copied `.ci/docker/requirements-lintrunner.txt` to replace the one under the root directory so that we can use it in OSS as well as internal. Then the original `.ci/docker/requirements-lintrunner.txt` becomes a relative symlink pointing to `../../requirements-lintrunner.txt`. That file doesn't exist in internal repo but exists in OSS. Reviewed By: tarun292, huydhn, dbort Differential Revision: D49756316 fbshipit-source-id: 3c712602cf7b6daa99a329f0b6a7a735221eab41
1 parent 1ab02ed commit ee7ae7d

File tree

4 files changed

+27
-23
lines changed

4 files changed

+27
-23
lines changed

.ci/docker/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ TORCH_VERSION=$(cat ci_commit_pins/pytorch.txt)
3636
TORCHAUDIO_VERSION=$(cat ci_commit_pins/audio.txt)
3737
TORCHVISION_VERSION=$(cat ci_commit_pins/vision.txt)
3838

39+
# Copy requirements-lintrunner.txt from root to here
40+
cp ../../requirements-lintrunner.txt ./
41+
3942
docker build \
4043
--no-cache \
4144
--progress=plain \

.ci/docker/requirements-lintrunner.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

.lintrunner.private.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
merge_base_with="fbcode/warm"
2+
only_lint_under_config_dir=true

requirements-lintrunner.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

requirements-lintrunner.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Lintrunner itself
2+
lintrunner==0.11.0
3+
lintrunner-adapters==0.9.0
4+
5+
# Flake 8 and its dependencies
6+
flake8==6.0.0
7+
flake8-breakpoint==1.1.0
8+
flake8-bugbear==23.6.5
9+
flake8-comprehensions==3.12.0
10+
flake8-pyi==23.5.0
11+
mccabe==0.7.0
12+
pycodestyle==2.10.0
13+
torchfix==0.0.2
14+
15+
# UFMT
16+
black==22.12.0
17+
ufmt==2.0.1
18+
usort==1.0.5
19+
20+
# Other linters
21+
clang-format==12.0.1
22+
cmakelint==1.4.1

0 commit comments

Comments
 (0)