Skip to content

Commit

Permalink
Merge pull request #32 from vyos/check-darker-ruff
Browse files Browse the repository at this point in the history
T0000: test
  • Loading branch information
kumvijaya authored Aug 26, 2024
2 parents d70c216 + 0c5dc09 commit 1aa5c1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/darker-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -37,4 +38,4 @@ jobs:
- name: Analyze Code
run: |
darker -r ${base_ref}... --check --diff --lint "ruff check" --isort --color ./src
darker -r ${base_ref}...${head_ref} --check --diff --lint "ruff check" --isort --color ./src
1 change: 1 addition & 0 deletions src/tests/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ def prepare_module(file_path='', module_name=''):
print()
if False: print('False')

Check failure on line 30 in src/tests/helper.py

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/helper.py:30:13: E701 Multiple statements on one line (colon)

Check failure on line 30 in src/tests/helper.py

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/helper.py:30:13: E701 Multiple statements on one line (colon)
if True: print('True Again')

Check failure on line 31 in src/tests/helper.py

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/helper.py:31:12: E701 Multiple statements on one line (colon)

Check failure on line 31 in src/tests/helper.py

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/helper.py:31:12: E701 Multiple statements on one line (colon)
if True: print('True Once Again')

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

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/helper.py:32:12: E701 Multiple statements on one line (colon)

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

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (E701)

src/tests/helper.py:32:12: E701 Multiple statements on one line (colon)

0 comments on commit 1aa5c1b

Please sign in to comment.