diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35da9bc..b76c725 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Create github release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/models.py b/models.py index ec16f6e..d55d44d 100644 --- a/models.py +++ b/models.py @@ -1,8 +1,7 @@ from datetime import datetime, timezone -from pydantic import BaseModel, Field - from lnbits.db import FilterModel +from pydantic import BaseModel, Field class CreateInventory(BaseModel): diff --git a/pyproject.toml b/pyproject.toml index 7ef5965..4b0fba4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,8 +8,8 @@ urls = { Homepage = "https://lnbits.com", Repository = "https://github.com/lnbit dependencies = [ "lnbits>1" ] -[tool.uv] -dev-dependencies = [ +[dependency-groups] +dev = [ "black", "pytest-asyncio", "pytest", @@ -18,6 +18,9 @@ dev-dependencies = [ "ruff", ] +[tool.poetry] +package-mode = false + [tool.mypy] exclude = "(nostr/*)" plugins = ["pydantic.mypy"] @@ -28,18 +31,6 @@ init_typed = true warn_required_dynamic_aliases = true warn_untyped_fields = true -[[tool.mypy.overrides]] -module = [ - "lnbits.*", - "lnurl.*", - "loguru.*", - "fastapi.*", - "pydantic.*", - "pyqrcode.*", - "shortuuid.*", - "httpx.*", -] -ignore_missing_imports = "True" [tool.pytest.ini_options] log_cli = false