From f6316599d4272aaff65a7a7e8a314cd8bf9fa3d3 Mon Sep 17 00:00:00 2001 From: Roland Thomas Date: Thu, 1 May 2025 22:41:06 -0400 Subject: [PATCH] Update __main__.py to sync entrypoint --- .pre-commit-config.yaml | 23 +++++++++++++++++++++++ falyx/__main__.py | 6 +++--- falyx/version.py | 2 +- pyproject.toml | 2 +- 4 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..0cacd88 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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$ diff --git a/falyx/__main__.py b/falyx/__main__.py index 3cff04f..2b2c3c0 100644 --- a/falyx/__main__.py +++ b/falyx/__main__.py @@ -33,7 +33,7 @@ def bootstrap() -> Path | None: return None -async def main() -> None: +def main() -> None: bootstrap_path = bootstrap() if not bootstrap_path: print("No Falyx config file found. Exiting.") @@ -45,8 +45,8 @@ async def main() -> None: columns=4, ) flx.add_commands(loader(bootstrap_path)) - await flx.run() + asyncio.run(flx.run()) if __name__ == "__main__": - asyncio.run(main()) + main() diff --git a/falyx/version.py b/falyx/version.py index 9cb17e7..c11f861 100644 --- a/falyx/version.py +++ b/falyx/version.py @@ -1 +1 @@ -__version__ = "0.1.8" +__version__ = "0.1.9" diff --git a/pyproject.toml b/pyproject.toml index 32cb806..0956a89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "falyx" -version = "0.1.8" +version = "0.1.9" description = "Reliable and introspectable async CLI action framework." authors = ["Roland Thomas Jr "] license = "MIT"