From faddcd0bf8ac7d7a25feaf22af1cfa1f70202be0 Mon Sep 17 00:00:00 2001 From: LiZhenCheng9527 Date: Mon, 22 Dec 2025 19:54:05 +0800 Subject: [PATCH] add workflow about python lint Signed-off-by: LiZhenCheng9527 --- .github/workflows/python-lint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/python-lint.yml diff --git a/.github/workflows/python-lint.yml b/.github/workflows/python-lint.yml new file mode 100644 index 00000000..c4ef44b3 --- /dev/null +++ b/.github/workflows/python-lint.yml @@ -0,0 +1,27 @@ +name: Pylint +on: + pull_request: + branches: + - main + - release + paths: + - "**/*.py" +jobs: + lint: + runs-on: ubuntu-latest # runner environment + strategy: + matrix: + python-version: ["3.10", "3.11", "3.12"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint --fail-under=7.0 --disable=import-error,missing-docstring $(git ls-files '*.py') \ No newline at end of file