Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version #312

Merged
merged 4 commits into from
Aug 19, 2024
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 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
Loading