Skip to content

Commit

Permalink
Merge pull request #45 from kumvijaya/current
Browse files Browse the repository at this point in the history
T0000: check
  • Loading branch information
kumvijaya authored Aug 29, 2024
2 parents d1a50ed + 0ff09ad commit ff8b1a1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/darker-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -35,4 +42,4 @@ jobs:
- name: Analyze Code
run: |
darker -r origin/base --check --diff --lint "ruff check" --color .
darker -r origin/base --check --diff --lint "ruff check --config ./reusable-actions/.github/ruff.toml" --color .
4 changes: 0 additions & 4 deletions src/tests/test_config_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
3 changes: 3 additions & 0 deletions src/tests/test_configverify.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ def test_dh_key_none(self):

def test_dh_key_512(self):
key_len = '512'
if False: print('False')

Check failure on line 32 in src/tests/test_configverify.py

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/test_configverify.py:32:17: E701 Multiple statements on one line (colon)
if True: print('True Again')

Check failure on line 33 in src/tests/test_configverify.py

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/test_configverify.py:33:16: E701 Multiple statements on one line (colon)
if True: print('True Once Again')

Check failure on line 34 in src/tests/test_configverify.py

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/test_configverify.py:34:16: E701 Multiple statements on one line (colon)

cmd(f'openssl dhparam -out {dh_file} {key_len}')
self.assertTrue(verify_diffie_hellman_length(dh_file, key_len))

0 comments on commit ff8b1a1

Please sign in to comment.