Skip to content

Commit

Permalink
fix: fix tests, rename repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Dec 17, 2023
1 parent 5721865 commit cfcf627
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
7 changes: 2 additions & 5 deletions tests/test_griffe_fieldz.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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]
Expand Down

0 comments on commit cfcf627

Please sign in to comment.