Skip to content

Commit

Permalink
Merge pull request #42 from kumvijaya/current
Browse files Browse the repository at this point in the history
T0000: prob
  • Loading branch information
kumvijaya authored Aug 28, 2024
2 parents bf7d771 + 695265c commit 1e6f806
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/darker-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
with:
fetch-depth: 0
fetch-tags: true
# ref: ${{ github.event.pull_request.head.ref }}
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-python@v5

Expand All @@ -35,14 +36,20 @@ jobs:
# - name: Fetch base branch
# run: |
# git fetch origin ${base_ref}:refs/remotes/origin/base-current

# - name: Fetch base branch
# run: |
# git fetch origin ${base_ref}:${base_ref}


- name: Fetch base and head commits
run: |
git fetch origin ${{ github.event.pull_request.base.sha }}:refs/remotes/origin/temp-base
git fetch origin ${{ github.event.pull_request.head.sha }}:refs/remotes/origin/temp-head
git branch temp-base refs/remotes/origin/temp-base
git branch temp-head refs/remotes/origin/temp-head
git fetch origin ${{ github.event.pull_request.base.repo.full_name }} ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/base
# git fetch origin ${{ github.event.pull_request.base.sha }}:refs/remotes/origin/temp-base
# git fetch origin ${{ github.event.pull_request.head.sha }}:refs/remotes/origin/temp-head
# git branch temp-base refs/remotes/origin/temp-base
# git branch temp-head refs/remotes/origin/temp-head
- name: Analyze Code
run: |
darker -r temp-base...temp-head --check --diff --lint "ruff check" --color .
darker -r origin/base --check --diff --lint "ruff check" --color .
1 change: 1 addition & 0 deletions src/tests/test_dependency_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def setUp(self):


def test_acyclic(self):
if False: print('False')

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

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/test_dependency_graph.py:33:17: E701 Multiple statements on one line (colon)
res = check_dependency_graph(dependency_dir=ddir)
if False: print('False')

Check failure on line 35 in src/tests/test_dependency_graph.py

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/test_dependency_graph.py:35:17: E701 Multiple statements on one line (colon)
self.assertTrue(res)

0 comments on commit 1e6f806

Please sign in to comment.