summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-08-27 00:16:47 +0530
committerGitHub <noreply@github.com>2024-08-27 00:16:47 +0530
commit1aa5c1b0f209de718cecd9d532b100058f5b4d7a (patch)
treee488b3f04de1be4f566477ee471f33f702fef374
parentd70c2162e1a98aeee60de32ae8a1e24c187043a9 (diff)
parent0c5dc09041d5d8784e397fa010496b69b4261e52 (diff)
downloadvyos-workflow-test-temp-1aa5c1b0f209de718cecd9d532b100058f5b4d7a.tar.gz
vyos-workflow-test-temp-1aa5c1b0f209de718cecd9d532b100058f5b4d7a.zip
Merge pull request #32 from vyos/check-darker-ruff
T0000: test
-rw-r--r--.github/workflows/darker-lint.yml3
-rw-r--r--src/tests/helper.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml
index c4ca348..7d833d9 100644
--- a/.github/workflows/darker-lint.yml
+++ b/.github/workflows/darker-lint.yml
@@ -12,6 +12,7 @@ permissions:
env:
base_ref: ${{ github.event.pull_request.base.ref }}
+ head_ref: ${{ github.event.pull_request.head.ref }}
jobs:
darker-lint:
@@ -37,4 +38,4 @@ jobs:
- name: Analyze Code
run: |
- darker -r ${base_ref}... --check --diff --lint "ruff check" --isort --color ./src \ No newline at end of file
+ darker -r ${base_ref}...${head_ref} --check --diff --lint "ruff check" --isort --color ./src \ No newline at end of file
diff --git a/src/tests/helper.py b/src/tests/helper.py
index ea1ec74..a4d30c7 100644
--- a/src/tests/helper.py
+++ b/src/tests/helper.py
@@ -29,3 +29,4 @@ def prepare_module(file_path='', module_name=''):
print()
if False: print('False')
if True: print('True Again')
+ if True: print('True Once Again')