summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')