generated from Yavook.de/vscode-python3
make this poetry compliant
This commit is contained in:
parent
db8df8762c
commit
fa150ff1d0
3 changed files with 23 additions and 9 deletions
12
README.md
12
README.md
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -118,7 +118,11 @@ def func_info(f: Callable) -> None:
|
|||
print(f"Function {f.__name__} is broken.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def main() -> None:
|
||||
func_info(call_foo_global)
|
||||
func_info(call_foo_local)
|
||||
func_info(call_foo_injected)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
@ -1,16 +1,18 @@
|
|||
[tool.poetry]
|
||||
name = "cursed-snakes"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Jörn-Michael Miehe <jmm@yavook.de>"]
|
||||
description = "How Not to Python"
|
||||
license = "MIT"
|
||||
readme = "README.md"
|
||||
name = "cursed-snakes"
|
||||
packages = [{include = "cursed_snakes"}]
|
||||
readme = "README.md"
|
||||
version = "0.1.0"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.10"
|
||||
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
requires = ["poetry-core"]
|
||||
|
||||
[tool.poetry.scripts]
|
||||
namespace-inject = "cursed_snakes.namespace_inject:main"
|
||||
|
|
|
|||
Loading…
Reference in a new issue