From 5cc6765b4e508eb0e16ae7f7de3d583a6cead6b6 Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Sat, 3 Aug 2024 17:14:41 +0530 Subject: T0000: ruff test --- .github/workflows/ruff-lint.yml | 15 +++++++++++++++ src/tests/helper.py | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ruff-lint.yml diff --git a/.github/workflows/ruff-lint.yml b/.github/workflows/ruff-lint.yml new file mode 100644 index 0000000..559853c --- /dev/null +++ b/.github/workflows/ruff-lint.yml @@ -0,0 +1,15 @@ +--- +name: Ruff Lint + +on: [push, pull_request] + +jobs: + ruff-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b + with: + changed-files: 'true' diff --git a/src/tests/helper.py b/src/tests/helper.py index 57922e0..b994f8e 100644 --- a/src/tests/helper.py +++ b/src/tests/helper.py @@ -22,6 +22,7 @@ def prepare_module(file_path='', module_name=''): module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) sys.modules[module_name] = module - if True: print('True') + if True: + print('True') print() if False: print('False') -- cgit v1.2.3