Update __main__.py to sync entrypoint
This commit is contained in:
parent
b51c4ba4f7
commit
f6316599d4
|
@ -0,0 +1,23 @@
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v5.0.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- repo: https://github.com/pycqa/isort
|
||||||
|
rev: 5.13.2
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
args: [--profile, black]
|
||||||
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
||||||
|
rev: 25.1.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
args: [-l, "90"]
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: sync-version
|
||||||
|
name: Sync version from pyproject.toml
|
||||||
|
entry: poetry run sync-version
|
||||||
|
language: system
|
||||||
|
files: ^pyproject\.toml$
|
|
@ -33,7 +33,7 @@ def bootstrap() -> Path | None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
def main() -> None:
|
||||||
bootstrap_path = bootstrap()
|
bootstrap_path = bootstrap()
|
||||||
if not bootstrap_path:
|
if not bootstrap_path:
|
||||||
print("No Falyx config file found. Exiting.")
|
print("No Falyx config file found. Exiting.")
|
||||||
|
@ -45,8 +45,8 @@ async def main() -> None:
|
||||||
columns=4,
|
columns=4,
|
||||||
)
|
)
|
||||||
flx.add_commands(loader(bootstrap_path))
|
flx.add_commands(loader(bootstrap_path))
|
||||||
await flx.run()
|
asyncio.run(flx.run())
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
asyncio.run(main())
|
main()
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.1.8"
|
__version__ = "0.1.9"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "falyx"
|
name = "falyx"
|
||||||
version = "0.1.8"
|
version = "0.1.9"
|
||||||
description = "Reliable and introspectable async CLI action framework."
|
description = "Reliable and introspectable async CLI action framework."
|
||||||
authors = ["Roland Thomas Jr <roland@rtj.dev>"]
|
authors = ["Roland Thomas Jr <roland@rtj.dev>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
Loading…
Reference in New Issue