From ced64e45d1ab461f04d6c2e04c4da1b3b7d5e15e Mon Sep 17 00:00:00 2001 From: Tianlei Wu Date: Tue, 10 Dec 2024 15:50:33 -0800 Subject: [PATCH] add requirements-lintrunner.txt to requirements-dev.txt --- .github/workflows/lint.yml | 1 - .lintrunner.toml | 2 +- docs/Coding_Conventions_and_Standards.md | 2 +- requirements-dev.txt | 3 +-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 79ea7d19cc8b3..8d966d358de01 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -59,7 +59,6 @@ jobs: run: | set -e -x python -m pip install --user -r requirements-dev.txt - python -m pip install --user lintrunner lintrunner init - name: Run lintrunner on all files run: | diff --git a/.lintrunner.toml b/.lintrunner.toml index 43478a02bea7a..5ef9ad9337f57 100644 --- a/.lintrunner.toml +++ b/.lintrunner.toml @@ -2,7 +2,7 @@ # You can install the dependencies and initialize with # # ```sh -# pip install lintrunner +# pip install -r requirements-lintrunner.txt # lintrunner init # ``` # diff --git a/docs/Coding_Conventions_and_Standards.md b/docs/Coding_Conventions_and_Standards.md index 4c19a54636d58..02af7ddaa49be 100644 --- a/docs/Coding_Conventions_and_Standards.md +++ b/docs/Coding_Conventions_and_Standards.md @@ -155,7 +155,7 @@ Using `Show Code Coverage Coloring` will allow you to visually inspect which lin This project uses [lintrunner](https://github.com/suo/lintrunner) for linting. It provides a consistent linting experience locally and in CI. You can install the dependencies and initialize with ```sh -pip install lintrunner +pip install -r requirements-lintrunner.txt lintrunner init ``` diff --git a/requirements-dev.txt b/requirements-dev.txt index 1b5ca65cf8037..b95b85781a398 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,6 @@ -black>=22.3 +-r requirements-lintrunner.txt cerberus flatbuffers -isort jinja2 numpy onnx