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 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 @@ def test_identity(self): 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 @@ def test_dh_key_none(self): 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))