Skip to content

Commit

Permalink
Merge pull request #312 from dbatten5/bump-version
Browse files Browse the repository at this point in the history
Bump version
  • Loading branch information
dbatten5 authored Aug 19, 2024
2 parents da3e0a0 + 3d6cc67 commit 2c2fc2f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ print(config.path)
`maison` offers optional schema validation.

To validate a configuration, first create a schema. The schema should implement
a method called `dict`. This can be achieved by writing the schema as a
a method called `model_dump`. This can be achieved by writing the schema as a
`pydantic` model:

```python
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "maison"
version = "1.4.3"
version = "2.0.0"
description = "Read settings from config files"
authors = ["Dom Batten <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -77,7 +77,7 @@ ignore_missing_imports = true
[tool.ruff]
src = ['src', 'tests']
line-length = 88
target-version = 'py37'
target-version = 'py38'

[tool.ruff.lint]
ignore = [
Expand Down
2 changes: 1 addition & 1 deletion src/maison/config_sources/ini_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def to_dict(self) -> Dict[Any, Any]:
config = self._load_file()
return {section: dict(config.items(section)) for section in config.sections()}

@lru_cache()
@lru_cache
def _load_file(self) -> ConfigParser:
"""Load the `.ini` file.
Expand Down
2 changes: 1 addition & 1 deletion src/maison/config_sources/toml_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def to_dict(self) -> Dict[Any, Any]:
"""
return self._load_file()

@lru_cache()
@lru_cache
def _load_file(self) -> Dict[Any, Any]:
"""Load the `.toml` file.
Expand Down

0 comments on commit 2c2fc2f

Please sign in to comment.