Skip to content

Commit 11269da

Browse files
committed
wip
1 parent 848aeab commit 11269da

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ jobs:
103103

104104
- name: "Check for any unstaged changes"
105105
run: |
106-
if [ 0 -ne $(git status --porcelain) ]; then
106+
if [ -n "$(git status --porcelain)" ]; then
107107
exit 1
108108
fi

src/module_name/sample.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
"""This is just a sample file"""
22

3-
import httpx
43
from __future__ import annotations
5-
6-
4+
import httpx
75
def main() -> bool:
86
"""Main"""
97
print("The squared of 2 is", squared(2))
108
return True
11-
12-
139
def squared(value: int) -> int:
1410
"""Returns the squared value"""
1511
return value * value
16-
17-
1812
def health_check() -> bool:
1913
"""Returns true when github.com is accessible."""
2014
return httpx.get("https://github.com").is_success
15+
16+
17+

0 commit comments

Comments
 (0)