Skip to content

Commit

Permalink
Add python 3.10 to CI (#31)
Browse files Browse the repository at this point in the history
* Add p3.10

* Fix linter

* Fixup

* Change to pytest for p3.10 support
  • Loading branch information
erogol authored Feb 16, 2022
1 parent b57565c commit 3270640
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ target_dirs := tests coqpit


test: ## run tests.
nosetests -x --with-cov -cov --cover-erase --cover-package coqpit tests --nologcapture --nocapture
coverage run -m pytest && coverage report --show-missing

style: ## update code style.
black ${target_dirs}
Expand Down
4 changes: 2 additions & 2 deletions coqpit/coqpit.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def deserialize(self, data: dict) -> "Serializable":
init_kwargs[field.name] = value
continue
if value == MISSING:
raise ValueError("deserialized with unknown value for {} in {}".format(field.name, self.__name__))
raise ValueError(f"deserialized with unknown value for {field.name} in {self.__name__}")
value = _deserialize(value, field.type)
init_kwargs[field.name] = value
for k, v in init_kwargs.items():
Expand Down Expand Up @@ -438,7 +438,7 @@ def deserialize_immutable(cls, data: dict) -> "Serializable":
init_kwargs[field.name] = value
continue
if value == MISSING:
raise ValueError("Deserialized with unknown value for {} in {}".format(field.name, cls.__name__))
raise ValueError(f"Deserialized with unknown value for {field.name} in {cls.__name__}")
value = _deserialize(value, field.type)
init_kwargs[field.name] = value
return cls(**init_kwargs)
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pylint
black
nose
pytest
coverage

0 comments on commit 3270640

Please sign in to comment.