Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T0000: test #32

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -16,8 +16,8 @@

import sys
import importlib.util
import math

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

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (F401)

src/tests/helper.py:19:8: F401 `math` imported but unused

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

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (F401)

src/tests/helper.py:19:8: F401 `math` imported but unused
import json

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

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (F401)

src/tests/helper.py:20:8: F401 `json` imported but unused

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

View workflow job for this annotation

GitHub Actions / ruff-lint

Ruff (F401)

src/tests/helper.py:20:8: F401 `json` imported but unused

def prepare_module(file_path='', module_name=''):
spec = importlib.util.spec_from_file_location(module_name, file_path)
Expand All @@ -27,5 +27,6 @@
if True:
print('True')
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)
Loading