Skip to content

Commit

Permalink
update all dependencies
Browse files Browse the repository at this point in the history
to the versions suggested by the IDE
  • Loading branch information
carueda committed Jan 22, 2024
1 parent 2fea053 commit 4831558
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 35 deletions.
24 changes: 12 additions & 12 deletions DEVEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ j all
which includes type checking, testing, formatting, and pylint:
```text
python -m mypy .
Success: no issues found in 18 source files
Success: no issues found in 23 source files
python -m pytest
==================================== test session starts ====================================
platform darwin -- Python 3.9.17, pytest-7.4.0, pluggy-1.0.0
==================================== test session starts =====================================
platform darwin -- Python 3.9.17, pytest-7.4.4, pluggy-1.0.0
...
plugins: syrupy-4.0.5
collected 7 items
plugins: anyio-4.0.0, syrupy-4.6.0, cov-4.1.0
collected 9 items
tests/test_file_helper.py . [ 14%]
tests/test_json_support.py ... [ 57%]
tests/test_metadata.py . [ 71%]
tests/test_misc.py .. [100%]
tests/test_file_helper.py . [ 11%]
tests/test_json_support.py ... [ 44%]
tests/test_metadata.py ... [ 77%]
tests/test_misc.py .. [100%]
---------------------------------- snapshot report summary ----------------------------------
---------------------------------- snapshot report summary -----------------------------------
9 snapshots passed.
===================================== 7 passed in 0.89s =====================================
===================================== 9 passed in 0.66s ======================================
python -m ufmt format .
16 files already formatted ✨
22 files already formatted ✨
python -m pylint src
--------------------------------------------------------------------
Expand Down
24 changes: 12 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
boto3==1.28.3
dataclasses-json==0.5.9
boto3==1.34.23
dataclasses-json==0.6.3
python-dateutil==2.8.2
pyyaml==6.0
marshmallow==3.19.0
pyyaml==6.0.1
marshmallow==3.20.2
# lifewatch-pypam # when published
soundfile==0.12.1

# quickly tried it but got: AttributeError: module 'xarray_extras' has no attribute 'csv'
# xarray-extras==0.5.0

# So we use it as engine for xarray to store time variable as int64
h5netcdf==1.2.0
h5netcdf==1.3.0

# netCDF4==1.6.3 # in case of loading netCDF4 files

pvlib==0.10.1
pvlib==0.10.3

## dev dependencies
mypy==1.4.1
ruff==0.0.278
ufmt==2.1.0
pylint==2.17.4
pytest==7.4.0
syrupy==4.0.6
mypy==1.8.0
ruff==0.1.14
ufmt==2.3.0
pylint==3.0.3
pytest==7.4.4
syrupy==4.6.0
17 changes: 6 additions & 11 deletions src/json_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@
from src.logging_helper import PbpLogger


def datetime_field():
return field(
metadata=config(
encoder=lambda dt: dt.strftime("%Y-%m-%dT%H:%M:%S.000Z"),
decoder=iso8601_parser.parse,
)
)


@dataclass_json
@dataclass
class JEntry:
Expand All @@ -29,8 +20,12 @@ class JEntry:

uri: str
duration_secs: float
start: datetime = datetime_field()
# end: datetime = datetime_field() -- not used
start: datetime = field(
metadata=config(
encoder=lambda dt: dt.strftime("%Y-%m-%dT%H:%M:%S.000Z"),
decoder=iso8601_parser.parse,
)
)

@property
def path(self) -> str:
Expand Down

0 comments on commit 4831558

Please sign in to comment.