diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c46f563..b681f37 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -31,9 +31,9 @@ jobs: - name: Install Poetry Action uses: snok/install-poetry@v1.3.4 - name: Install Dependencies - run: poetry install + run: poetry install --only types - name: Run mypy - run: poetry run pytest + run: poetry run mypy wbdata test: name: Tests runs-on: ${{ matrix.os }} @@ -51,6 +51,6 @@ jobs: - name: Install Poetry Action uses: snok/install-poetry@v1.3.4 - name: Install Dependencies - run: poetry install + run: poetry install --only tests - name: Run Tests run: poetry run pytest diff --git a/.gitignore b/.gitignore index ace17f8..7f97897 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,5 @@ nosetests.xml # Docs docs/_build/ + +.mypy_cache diff --git a/pyproject.toml b/pyproject.toml index d866d6a..1130fc5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,6 @@ pandas = {version = ">=1,<3", optional=true} cachetools = "^5.3.2" shelved-cache = "^0.3.1" backoff = "^2.2.1" -types-cachetools = "^5.3.0.7" dateparser = "^1.2.0" decorator = "^5.1.1" @@ -34,16 +33,24 @@ pandas = ["pandas"] [tool.poetry.group.dev.dependencies] ruff = "^0.1.11" +ipython = "<8" + +[tool.poetry.group.tests.dependencies] pytest = "^7.4.4" +pytest-cov = "^4.1.0" + +[tool.poetry.group.docs.dependencies] +mkdocs = "^1.5.3" +mkdocstrings = "^0.24.0" + +[tool.poetry.group.types.dependencies] mypy = "^1.8.0" +types-cachetools = "^5.3.0.7" types-tabulate = "^0.9.0.20240106" types-decorator = "^5.1.8.20240106" types-appdirs = "^1.4.3.5" types-requests = "^2.31.0.20240106" -ipython = "<8" types-dateparser = "^1.1.4.20240106" -mkdocs = "^1.5.3" -mkdocstrings = "^0.24.0" [tool.ruff.lint] select = [