Loading .gitignore +4 −2 Original line number Diff line number Diff line .venv .vscode templates_tests/python/.venv templates_tests/python/.mypy_cache .mypy_cache .pytest_cache __pycache__ .coverage .DS_Store templates_tests/python_setup/README.md 0 → 100644 +3 −0 Original line number Diff line number Diff line # python project Mock up python project to be used in testing a setup.py package. templates_tests/python_setup/mypackage/__init__.py 0 → 100644 +3 −0 Original line number Diff line number Diff line """ Well well, what to write here? """ templates_tests/python_setup/mypackage/mymodule.py 0 → 100644 +20 −0 Original line number Diff line number Diff line """ This module is quite excellent for any number of testing purposes. """ def myfunction(variable: int) -> int: """this function is very useful""" return variable * 3 + 2 def myotherfunction(variable: int) -> int: """this function is even more useful""" return variable - 1 def too_complicated() -> None: """this function will increase code complexity""" for i in range(1000): print("was this really necessary??") print("I guess it was") templates_tests/python_setup/setup.py 0 → 100644 +3 −0 Original line number Diff line number Diff line from setuptools import setup setup(name="mypackage", version="1.0.0") Loading
.gitignore +4 −2 Original line number Diff line number Diff line .venv .vscode templates_tests/python/.venv templates_tests/python/.mypy_cache .mypy_cache .pytest_cache __pycache__ .coverage .DS_Store
templates_tests/python_setup/README.md 0 → 100644 +3 −0 Original line number Diff line number Diff line # python project Mock up python project to be used in testing a setup.py package.
templates_tests/python_setup/mypackage/__init__.py 0 → 100644 +3 −0 Original line number Diff line number Diff line """ Well well, what to write here? """
templates_tests/python_setup/mypackage/mymodule.py 0 → 100644 +20 −0 Original line number Diff line number Diff line """ This module is quite excellent for any number of testing purposes. """ def myfunction(variable: int) -> int: """this function is very useful""" return variable * 3 + 2 def myotherfunction(variable: int) -> int: """this function is even more useful""" return variable - 1 def too_complicated() -> None: """this function will increase code complexity""" for i in range(1000): print("was this really necessary??") print("I guess it was")
templates_tests/python_setup/setup.py 0 → 100644 +3 −0 Original line number Diff line number Diff line from setuptools import setup setup(name="mypackage", version="1.0.0")