From 552c69f5467a45ed8558acc8873a65a1b3f3c7b6 Mon Sep 17 00:00:00 2001 From: duyifan Date: Thu, 5 Dec 2024 17:27:38 +0800 Subject: [PATCH 1/3] tmp --- .github/workflows/pylint.yml | 3 ++- .pylintrc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 8c7d5432..3e9fbf29 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -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. From ef9fb4d4f40f2078e681753e8e036803b074b92b Mon Sep 17 00:00:00 2001 From: duyifan Date: Thu, 5 Dec 2024 17:38:03 +0800 Subject: [PATCH 2/3] action_test --- tests/basicts_test/scaler_test/test_min_max_scaler.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/basicts_test/scaler_test/test_min_max_scaler.py b/tests/basicts_test/scaler_test/test_min_max_scaler.py index ad89263e..4725cb6e 100644 --- a/tests/basicts_test/scaler_test/test_min_max_scaler.py +++ b/tests/basicts_test/scaler_test/test_min_max_scaler.py @@ -1,7 +1,8 @@ -import copy -import json import os import unittest +import copy +import json + import numpy as np import torch @@ -10,9 +11,6 @@ class TestMinMaxScaler(unittest.TestCase): - """ - Test the MinMaxScaler class. - """ def setUp(self): # Mock dataset description and data From c1d2755c78fdbedd771e92a7385c8856882f90c4 Mon Sep 17 00:00:00 2001 From: duyifan Date: Thu, 5 Dec 2024 17:43:34 +0800 Subject: [PATCH 3/3] action test --- .github/workflows/pylint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 3e9fbf29..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]