Skip to content

Commit

Permalink
Merge pull request #6 from genomoncology/isocodes
Browse files Browse the repository at this point in the history
0.1.0: Refactored to follow PEP 593 standards.
  • Loading branch information
imaurer committed Mar 25, 2024
2 parents f34e9aa + 7d3f367 commit 9ef16dc
Show file tree
Hide file tree
Showing 48 changed files with 1,759 additions and 1,279 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ wheels/
model_cache/
.DS_Store
/training/
profile.dat
profile.dat
notebooks
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## v0.1.0 (2023-03-25)

The project's typing system was validated using mypy and refactored to follow
Annotated types as specified by [PEP 593](https://peps.python.org/pep-0593/).

#### Added
- FuzzValidator annotation type created to simplify design
- validate_python, validate_json, and validate_entity functions added
- Added Language, LanguageName, and LanguageCode usable types
- fuzztypes.logger and fuzztypes.utils module for downloading iso codes

#### Changed
- Renamed OnDisk to OnDiskValidator
- Renamed InMemory to InMemoryValidator
- Refactored InMemoryValidator and OnDiskValidator to use FuzzValidator
- Refactored Person to use FuzzValidator
- Renamed Regex to RegexValidator
- Changed error message to more common "did you mean" message format

#### Removed
- abstract.py module and AbstractType class, simplified by FuzzValidator
- function.py module and Function annotation type, replaced by FuzzValidator
279 changes: 184 additions & 95 deletions README.md

Large diffs are not rendered by default.

200 changes: 0 additions & 200 deletions notebooks/00_readme_examples.ipynb

This file was deleted.

7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ dynamic = ["version"]
[project.optional-dependencies]
test = [
"pytest",
"pytest-mock",
"coverage[toml]",
]
local = [
"build",
"jupyter",
"ipython",
"mypy",
"pip",
"setuptools",
"twine",
Expand Down Expand Up @@ -59,11 +61,6 @@ ext = [
path = "src/fuzztypes/__init__.py"

[tool.mypy]
strict = true

[[tool.mypy.overrides]]
module = "gpt.tests.*"
ignore_missing_imports = true
check_untyped_defs = true

[tool.pytest.ini_options]
Expand Down
7 changes: 7 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ more-itertools==10.2.0
# via jaraco-classes
mpmath==1.3.0
# via sympy
mypy==1.9.0
mypy-extensions==1.0.0
# via mypy
nameparser==1.1.3
nbclient==0.10.0
# via nbconvert
Expand Down Expand Up @@ -320,6 +323,8 @@ pylance==0.10.2
pyproject-hooks==1.0.0
# via build
pytest==8.0.1
# via pytest-mock
pytest-mock==3.12.0
python-dateutil==2.9.0.post0
# via
# arrow
Expand Down Expand Up @@ -434,6 +439,7 @@ tomli==2.0.1
# build
# coverage
# jupyterlab
# mypy
# pyproject-hooks
# pytest
torch==2.2.1
Expand Down Expand Up @@ -480,6 +486,7 @@ typing-extensions==4.9.0
# async-lru
# huggingface-hub
# ipython
# mypy
# pydantic
# pydantic-core
# torch
Expand Down
Loading

0 comments on commit 9ef16dc

Please sign in to comment.