Skip to content

Commit

Permalink
refactor: finish pydantic v2 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Aug 30, 2023
1 parent c3b32e2 commit faf3161
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 77 deletions.
32 changes: 8 additions & 24 deletions .calcipy_packaging.lock
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,6 @@
"name": "decli",
"version": "0.6.1"
},
"deepdiff6": {
"datetime": "2022-09-04T07:57:24.286688+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2022-09-04T07:57:24.286688+00:00",
"latest_version": "6.2.0",
"name": "deepdiff6",
"version": "6.2.0"
},
"defusedxml": {
"datetime": "2021-03-08T10:59:24.450195+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -591,14 +583,6 @@
"name": "numpy",
"version": "1.25.2"
},
"ordered-set": {
"datetime": "2022-01-26T14:38:48.677482+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2022-01-26T14:38:48.677482+00:00",
"latest_version": "4.1.0",
"name": "ordered-set",
"version": "4.1.0"
},
"packaging": {
"datetime": "2023-04-12T16:11:09.290380+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -759,14 +743,6 @@
"name": "pytest",
"version": "7.4.0"
},
"pytest-cache-assert": {
"datetime": "2023-02-26T13:36:50.747413+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-02-26T13:36:50.747413+00:00",
"latest_version": "3.0.8",
"name": "pytest-cache-assert",
"version": "3.0.8"
},
"pytest-cov": {
"datetime": "2023-05-24T18:44:54.079550+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down Expand Up @@ -959,6 +935,14 @@
"name": "stevedore",
"version": "5.1.0"
},
"syrupy": {
"datetime": "2023-08-29T15:28:49.150185+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
"latest_datetime": "2023-08-29T15:28:49.150185+00:00",
"latest_version": "4.4.0",
"name": "syrupy",
"version": "4.4.0"
},
"tabulate": {
"datetime": "2022-10-06T17:21:44.262497+00:00",
"domain": "https://pypi.org/pypi/{name}/json",
Expand Down
6 changes: 6 additions & 0 deletions docs/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Unreleased

### Fix

- update dependencies

## 1.2.5 (2023-07-23)

### Fix
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ poetry config pypi-token.pypi ...
<!-- {cts} COVERAGE -->
| File | Statements | Missing | Excluded | Coverage |
|-----------------------------------|--------------|-----------|------------|------------|
| `tail_jsonl/__init__.py` | 32 | 4 | 0 | 80.0% |
| `tail_jsonl/__init__.py` | 17 | 0 | 17 | 100.0% |
| `tail_jsonl/_private/__init__.py` | 0 | 0 | 0 | 100.0% |
| `tail_jsonl/_private/core.py` | 49 | 1 | 0 | 92.8% |
| `tail_jsonl/config.py` | 11 | 0 | 0 | 100.0% |
| `tail_jsonl/scripts.py` | 18 | 0 | 11 | 90.9% |
| **Totals** | 110 | 5 | 11 | 90.0% |
| **Totals** | 95 | 1 | 28 | 94.5% |

Generated on: 2023-08-14
Generated on: 2023-08-30
<!-- {cte} -->
50 changes: 1 addition & 49 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ def test_create_default_config():

config = _load_config(config_path=str(example_config))

assert tomllib.loads(example_config.read_text(encoding='utf-8')) == config.dict()
assert tomllib.loads(example_config.read_text(encoding='utf-8')) == config.model_dump()

0 comments on commit faf3161

Please sign in to comment.