summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-08-03 17:14:41 +0530
committerGitHub <noreply@github.com>2024-08-03 17:14:41 +0530
commit5cc6765b4e508eb0e16ae7f7de3d583a6cead6b6 (patch)
tree33f00ae396b5bcbcd4d6f589dfc774eeb6c2b6ed
parentae399e3687670c941c26ca25991d671b988fdd7f (diff)
downloadvyos-workflow-test-temp-5cc6765b4e508eb0e16ae7f7de3d583a6cead6b6.tar.gz
vyos-workflow-test-temp-5cc6765b4e508eb0e16ae7f7de3d583a6cead6b6.zip
T0000: ruff test
-rw-r--r--.github/workflows/ruff-lint.yml15
-rw-r--r--src/tests/helper.py3
2 files changed, 17 insertions, 1 deletions
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')