Skip to content

Commit cefa0a6

Browse files
authored
feat: add main file back (#94)
* feat: add main file back * build: update packages
1 parent ce01e7a commit cefa0a6

3 files changed

Lines changed: 47 additions & 22 deletions

File tree

poetry.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ package-mode = false
1616
mypy = "^1.15.0"
1717
pre-commit = "^4.2.0"
1818
pytest = "^8.3.5"
19-
ruff = "^0.11.4"
19+
ruff = "^0.11.11"
2020

2121
[project.ruff]
2222
src = ["src"]

src/main.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""Public module example."""
2+
3+
from loguru import logger
4+
5+
6+
def example(data: str) -> None:
7+
"""Use this docstring as an example for an Example function.
8+
9+
Args:
10+
data: a string, testing
11+
12+
Returns:
13+
Nothing
14+
15+
"""
16+
logger.info(data)
17+
18+
19+
if __name__ == "__main__":
20+
logger.info("hello world, test")
21+
22+
a = 5
23+
b = 1
24+
25+
example(data=str(a + b))

0 commit comments

Comments
 (0)