From cfcf627a22c9449be96ce3e7166d2d0ae37945e3 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Sun, 17 Dec 2023 08:59:05 -0500 Subject: [PATCH] fix: fix tests, rename repo --- README.md | 6 +++--- pyproject.toml | 4 ++-- tests/test_griffe_fieldz.py | 7 ++----- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e6fe3eb..d686c6b 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # griffe-fieldz -[![License](https://img.shields.io/pypi/l/griffe-fieldz.svg?color=green)](https://github.com/tlambert03/griffe-fieldz/raw/main/LICENSE) +[![License](https://img.shields.io/pypi/l/griffe-fieldz.svg?color=green)](https://github.com/pyapp-kit/griffe-fieldz/raw/main/LICENSE) [![PyPI](https://img.shields.io/pypi/v/griffe-fieldz.svg?color=green)](https://pypi.org/project/griffe-fieldz) [![Python Version](https://img.shields.io/pypi/pyversions/griffe-fieldz.svg?color=green)](https://python.org) -[![CI](https://github.com/tlambert03/griffe-fieldz/actions/workflows/ci.yml/badge.svg)](https://github.com/tlambert03/griffe-fieldz/actions/workflows/ci.yml) -[![codecov](https://codecov.io/gh/tlambert03/griffe-fieldz/branch/main/graph/badge.svg)](https://codecov.io/gh/tlambert03/griffe-fieldz) +[![CI](https://github.com/pyapp-kit/griffe-fieldz/actions/workflows/ci.yml/badge.svg)](https://github.com/pyapp-kit/griffe-fieldz/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/pyapp-kit/griffe-fieldz/branch/main/graph/badge.svg)](https://codecov.io/gh/pyapp-kit/griffe-fieldz) Griffe extension adding support for data-class like things (pydantic, attrs, etc...). This extension will inject the fields of the data-class into the diff --git a/pyproject.toml b/pyproject.toml index 5ad7c0f..2670805 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,8 +54,8 @@ dev = [ ] [project.urls] -homepage = "https://github.com/tlambert03/griffe-fieldz" -repository = "https://github.com/tlambert03/griffe-fieldz" +homepage = "https://github.com/pyapp-kit/griffe-fieldz" +repository = "https://github.com/pyapp-kit/griffe-fieldz" # https://docs.astral.sh/ruff [tool.ruff] diff --git a/tests/test_griffe_fieldz.py b/tests/test_griffe_fieldz.py index 2dcfcfe..944befb 100644 --- a/tests/test_griffe_fieldz.py +++ b/tests/test_griffe_fieldz.py @@ -1,9 +1,6 @@ """Tests for the Griffe extension.""" -from griffe.docstrings.dataclasses import ( - DocstringParameter, - DocstringSectionParameters, -) +from griffe.docstrings.dataclasses import DocstringParameter, DocstringSectionParameters from griffe.expressions import ExprName from griffe.extensions import Extensions from griffe.loader import GriffeLoader @@ -13,7 +10,7 @@ def test_extension() -> None: loader = GriffeLoader(extensions=Extensions(FieldzExtension())) - fake_mod = loader.load_module("tests.fake_module") + fake_mod = loader.load("tests.fake_module") sections = fake_mod["SomeDataclass"].docstring.parsed assert len(sections) == 2 sec1 = sections[1]