1
0
Fork 0

make this poetry compliant

This commit is contained in:
Jörn-Michael Miehe 2023-04-05 00:21:32 +00:00
parent db8df8762c
commit fa150ff1d0
3 changed files with 23 additions and 9 deletions

View file

@ -1,3 +1,11 @@
# vscode-python3 # Cursed Snakes
Use this template to jumpstart python development using Visual Studio Code! This repository is a collection of how not to python.
To qualify for this collection, each snippet has to be:
- Self-Contained: Single scripts are preferred, a small module is fine if needed
- Syntactically Correct: No complaints from flake8
or Pylance allowed
- Semantically Significant: The code has to do _something_
- Surprising: Something inherently "un-pythonic" has to happen

View file

@ -118,7 +118,11 @@ def func_info(f: Callable) -> None:
print(f"Function {f.__name__} is broken.") print(f"Function {f.__name__} is broken.")
if __name__ == "__main__": def main() -> None:
func_info(call_foo_global) func_info(call_foo_global)
func_info(call_foo_local) func_info(call_foo_local)
func_info(call_foo_injected) func_info(call_foo_injected)
if __name__ == "__main__":
main()

View file

@ -1,16 +1,18 @@
[tool.poetry] [tool.poetry]
name = "cursed-snakes"
version = "0.1.0"
description = ""
authors = ["Jörn-Michael Miehe <jmm@yavook.de>"] authors = ["Jörn-Michael Miehe <jmm@yavook.de>"]
description = "How Not to Python"
license = "MIT" license = "MIT"
readme = "README.md" name = "cursed-snakes"
packages = [{include = "cursed_snakes"}] packages = [{include = "cursed_snakes"}]
readme = "README.md"
version = "0.1.0"
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.10" python = "^3.10"
[build-system] [build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api" build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]
[tool.poetry.scripts]
namespace-inject = "cursed_snakes.namespace_inject:main"