summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ruff-lint.yml6
-rw-r--r--src/tests/test.py7
2 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/ruff-lint.yml b/.github/workflows/ruff-lint.yml
index e34dcb7..76e183c 100644
--- a/.github/workflows/ruff-lint.yml
+++ b/.github/workflows/ruff-lint.yml
@@ -23,12 +23,12 @@ jobs:
python-version: '3.11'
- name: Lint
- uses: chartboost/ruff-action@v1
+ uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b
with:
args: check
changed-files: 'true'
- - uses: chartboost/ruff-action@v1
+ - uses: chartboost/ruff-action@491342200cdd1cf4d5132a30ddc546b3b5bc531b
with:
args: format --diff
- changed-files: true \ No newline at end of file
+ changed-files: 'true' \ No newline at end of file
diff --git a/src/tests/test.py b/src/tests/test.py
new file mode 100644
index 0000000..46803bd
--- /dev/null
+++ b/src/tests/test.py
@@ -0,0 +1,7 @@
+from typing import List
+
+import os
+
+def sum_even_numbers(numbers: List[int]) -> int:
+ """Given a list of integers, return the sum of all even numbers in the list."""
+ return sum(num for num in numbers if num % 2 == 0) \ No newline at end of file