Skip to content

Commit

Permalink
Add dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagusiak committed Aug 4, 2024
1 parent ada0b65 commit b786e75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
python -m pip install -e .[pinned,dev]
- name: Run pre-commit checks
run: |
./pre-commit lint
./pre-commit
test:
runs-on: ubuntu-latest
strategy:
matrix:
# lowest, common (defaut ubuntu LTS), newest
# lowest, common (default ubuntu LTS), newest
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion alphaconf/internal/load_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def read_configuration_file(path: str) -> DictConfig:
"""
if path.endswith('.toml') and toml:
config = toml.load(path, decoder=TomlDecoderPrimitive())
return OmegaConf.create(config)
return OmegaConf.create(dict(config))
conf = OmegaConf.load(path)
if not isinstance(conf, DictConfig):
conf = OmegaConf.create({'config': conf})
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ invoke = ["invoke"]
pydantic = ["pydantic>=2"]
toml = ["toml"]
pinned = [
"omegaconf==2.3.0",
"pydantic==2.7.4",
"pyyaml~=6.0",
"toml==0.10.2",
]
dev = [
"mypy~=1.11",
"ruff==0.5.6",
"types-pyyaml~=6.0",
"types-toml==0.10.2",
]
test = [
Expand Down

0 comments on commit b786e75

Please sign in to comment.