From e457c69632268170ea15e5cbf1ef18bd79e2bbe7 Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Thu, 29 Aug 2024 01:19:15 +0530 Subject: T0000: check --- src/tests/test_config_diff.py | 4 ---- src/tests/test_configverify.py | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tests/test_config_diff.py b/src/tests/test_config_diff.py index a42ccac..cac1565 100644 --- a/src/tests/test_config_diff.py +++ b/src/tests/test_config_diff.py @@ -65,10 +65,6 @@ class TestConfigDiff(TestCase): r_union = vyos.configtree.union(add, inter) l_union = vyos.configtree.union(sub, inter) - if False: print('False') - if True: print('True Again') - if True: print('True Once Again') - self.assertEqual(r_union.to_string(), self.config_right.to_string(ordered_values=True)) self.assertEqual(l_union.to_string(), diff --git a/src/tests/test_configverify.py b/src/tests/test_configverify.py index d82cb28..e598679 100644 --- a/src/tests/test_configverify.py +++ b/src/tests/test_configverify.py @@ -29,6 +29,9 @@ class TestDictSearch(TestCase): def test_dh_key_512(self): key_len = '512' + if False: print('False') + if True: print('True Again') + if True: print('True Once Again') cmd(f'openssl dhparam -out {dh_file} {key_len}') self.assertTrue(verify_diffie_hellman_length(dh_file, key_len)) -- cgit v1.2.3 From 0ff09ad7addb7bb84b27e3175bddaa8aa8016e38 Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Thu, 29 Aug 2024 21:09:21 +0530 Subject: T0000: update --- .github/workflows/darker-lint.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml index c42c822..52dd7a7 100644 --- a/.github/workflows/darker-lint.yml +++ b/.github/workflows/darker-lint.yml @@ -17,6 +17,13 @@ jobs: pull-requests: write contents: read steps: + - name: Checkout reusable actions repo + uses: actions/checkout@v3 + with: + repository: vyos/.github + path: reusable-actions + ref: feature/ruff-toml + - name: Checkout head uses: actions/checkout@v4 with: @@ -35,4 +42,4 @@ jobs: - name: Analyze Code run: | - darker -r origin/base --check --diff --lint "ruff check" --color . \ No newline at end of file + darker -r origin/base --check --diff --lint "ruff check --config ./reusable-actions/.github/ruff.toml" --color . \ No newline at end of file -- cgit v1.2.3