Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Create venv and install dependencies
run: |
uv venv
uv pip install -r requirements.txt
uv pip install -e ".[dev,nixtlaverse]"

- name: Run tests
run: uv run pytest
3 changes: 3 additions & 0 deletions mkdocstrings_parser/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__version__ = "0.0.1"

from .parser import MkDocstringsParser # noqa: F401
File renamed without changes.
43 changes: 43 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "mkdocstrings-parser"
version = "0.0.1"
description = "A simple parser for mkdocstrings signature blocks"
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"griffe2md",
"pyyaml",
"rich",
]

[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
]
nixtlaverse = [
"coreforecast",
"utilsforecast",
"datasetsforecast",
"mlforecast[dask]",
"hierarchicalforecast",
"neuralforecast",
"statsforecast",
"nixtla"
]


[tool.setuptools]
packages = ["mkdocstrings_parser"]

[tool.setuptools.package-dir]
parser = "mkdocstrings_parser"

[tool.pytest.ini_options]
testpaths = "tests"
addopts = "-vv"
markers = "datasets: tests for datasetsforecast"
5 changes: 0 additions & 5 deletions pytest.ini

This file was deleted.

8 changes: 2 additions & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import os
import sys

sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from parser import MkDocstringsParser

import pytest

from mkdocstrings_parser import MkDocstringsParser


@pytest.fixture(scope="module")
def setup_parser():
Expand Down
Loading