diff --git a/README.md b/README.md index 89b20f7..c153299 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ > S'il vous plaît, dessine-moi un mouton. -The narrator of Antoine de Saint-Exupéry's Little Prince probably dreamt of a factory like this one... +The narrator of Antoine de Saint-Exupéry's Little Prince probably dreamt of a +factory like this one... [![PyPI version](https://img.shields.io/pypi/v/dessinemoi?color=blue)](https://pypi.org/project/dessinemoi) [![Conda version](https://img.shields.io/conda/v/conda-forge/dessinemoi?color=blue)](https://anaconda.org/conda-forge/dessinemoi) @@ -24,7 +25,7 @@ born from the need to create dynamically object trees from nested dictionaries - Create a `Factory` object and register types to it - Use dictionaries to create objects from the factory -- Create `attrs`-compatible converters to automatically convert dictionaries to +- Create *attrs*-compatible converters to automatically convert dictionaries to instances of registered types - Customize factories to your needs diff --git a/requirements-dev.lock b/requirements-dev.lock index 4dd50ce..fd17a13 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -6,6 +6,8 @@ # features: [] # all-features: false # with-sources: false +# generate-hashes: false +# universal: false -e file:. alabaster==0.7.16 diff --git a/requirements.lock b/requirements.lock index 398be84..9db3943 100644 --- a/requirements.lock +++ b/requirements.lock @@ -6,6 +6,8 @@ # features: [] # all-features: false # with-sources: false +# generate-hashes: false +# universal: false -e file:. attrs==23.2.0 diff --git a/tests/test_dessinemoi.py b/tests/test_dessinemoi.py index f0198e3..b2b75b2 100644 --- a/tests/test_dessinemoi.py +++ b/tests/test_dessinemoi.py @@ -124,7 +124,6 @@ def test_factory_lazy(factory): assert isinstance(factory.create("lazy"), LazyTypeTest) # Lazy types require an ID - aliases = (True,) with pytest.raises(ValueError): factory.register( f"{__name__}.LazyTypeTest", @@ -272,7 +271,7 @@ def test_lazy_type(): ) # -- Absolute path with nested submodules assert dessinemoi.LazyType.from_str("foo.bar.baz") == dessinemoi.LazyType( - mod=f"foo.bar", attr="baz" + mod="foo.bar", attr="baz" ) # -- Relative imports are not allowed with pytest.raises(ValueError):