From 986ff740e1bef81fd828da2c19504e7833a1f02b Mon Sep 17 00:00:00 2001 From: duyifan Date: Fri, 6 Dec 2024 15:38:32 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20raise=20pylint=20fail-u?= =?UTF-8?q?nder=20to=2010=20and=20add=20isort=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit in Actioin, raise pylint fail-under to 10 and add isort check --- .github/workflows/pylint.yml | 5 +++-- .pylintrc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 8c7d5432..577004f4 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,7 +1,7 @@ name: Pylint env: - FAIL_UNDER: "9.5" + FAIL_UNDER: "10.0" on: [push, pull_request] @@ -24,4 +24,5 @@ jobs: pip install coverage - name: Analysing the code with pylint run: | - pylint --fail-under=${FAIL_UNDER} basicts scripts + pylint --fail-under=${FAIL_UNDER} basicts scripts tests + isort -c basicts scripts tests diff --git a/.pylintrc b/.pylintrc index b6388c40..b1226f77 100644 --- a/.pylintrc +++ b/.pylintrc @@ -8,7 +8,7 @@ [MASTER] # Files or directories to be skipped. They should be base names, not paths. -ignore=baselines,assets +ignore=baselines,assets,checkpoints # Files or directories matching the regex patterns are skipped. The regex # matches against base names, not paths.