We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 848aeab commit 11269daCopy full SHA for 11269da
2 files changed
.github/workflows/python-tests.yml
@@ -103,6 +103,6 @@ jobs:
103
104
- name: "Check for any unstaged changes"
105
run: |
106
- if [ 0 -ne $(git status --porcelain) ]; then
+ if [ -n "$(git status --porcelain)" ]; then
107
exit 1
108
fi
src/module_name/sample.py
@@ -1,20 +1,17 @@
1
"""This is just a sample file"""
2
3
-import httpx
4
from __future__ import annotations
5
-
6
+import httpx
7
def main() -> bool:
8
"""Main"""
9
print("The squared of 2 is", squared(2))
10
return True
11
12
13
def squared(value: int) -> int:
14
"""Returns the squared value"""
15
return value * value
16
17
18
def health_check() -> bool:
19
"""Returns true when github.com is accessible."""
20
return httpx.get("https://github.com").is_success
+
0 commit comments