Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/0.2.0 #103

Merged
merged 56 commits into from
Apr 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
92f9d5f
Use pydantic models, remove Metobs class
mgcth Mar 23, 2024
7d208ca
Add metobs pydantic models
mgcth Mar 23, 2024
fb6885b
Add script generating metobs pydantic models from url
mgcth Mar 23, 2024
a8fcd6a
Update Metobs and integration tests
mgcth Mar 23, 2024
09c5f26
Add lint rules and update pydantic model filed names
mgcth Mar 23, 2024
3be389b
Refactor metobs unit tests
mgcth Mar 24, 2024
b23776c
Add fixture data for metobs unit tests
mgcth Mar 24, 2024
f86614e
Lint and format
mgcth Mar 24, 2024
3437473
Use model for ParameterItems
mgcth Mar 24, 2024
b5acc24
Draft metobs
mgcth Mar 25, 2024
2c83a5d
Simplify metobs unit testing
mgcth Mar 25, 2024
5357a92
Remove banding config and add shapely and pydantic
mgcth Mar 25, 2024
6d93a91
Robustify metobs table parsing and update integration tests
mgcth Mar 25, 2024
b1bd846
Add period station_set unit test, skipping data station_set currently
mgcth Mar 25, 2024
200c6cd
Add Mesan models
mgcth Mar 26, 2024
6a67d3b
Fix dataframe parsing bug
mgcth Mar 27, 2024
6560440
Strang update, in progress
mgcth Mar 28, 2024
a4f7dee
Rename attributes and put condition check in method
mgcth Mar 29, 2024
d05391d
Update pandas to 2.2 and add panderas
mgcth Mar 29, 2024
06138c2
Update strang return types and validate strang dataframes using panderas
mgcth Mar 29, 2024
ad17dd8
Move fixtures and update strang integration tests
mgcth Mar 29, 2024
c46d93f
Partial update of strang unit tests
mgcth Mar 29, 2024
c6a21c2
Passing strang unit tests, need cleaning
mgcth Mar 29, 2024
6f8d997
Fix lint
mgcth Mar 29, 2024
a0fbd74
Update Mesan, in progress
mgcth Mar 29, 2024
375499d
Draft update of mesan and metfcts
mgcth Mar 30, 2024
21e2306
Use parametric types
mgcth Mar 30, 2024
9e5e127
Save pydantic models from smhi api
mgcth Mar 30, 2024
c8a2972
Rename model modules
mgcth Mar 30, 2024
59ae528
Fix types
mgcth Mar 30, 2024
81dc1e0
Update some tests
mgcth Mar 30, 2024
965375a
return empty on request fail
mgcth Mar 30, 2024
0de96a3
Raise on request error instead of empty data
mgcth Mar 30, 2024
8a4253c
Bump ruff in pre-commit
mgcth Mar 30, 2024
541fabd
Constrain mesan and metfcts valid times
mgcth Mar 30, 2024
5aea297
Remove mypy file
mgcth Mar 31, 2024
10602b4
Update metobs tests
mgcth Mar 31, 2024
52d8c58
Update mesan unit tests
mgcth Mar 31, 2024
bbd5f38
Fix strang unit tests and add mesan text files
mgcth Mar 31, 2024
a49cb40
Refactor unit and integration tests, remove doc args and returns from…
mgcth Mar 31, 2024
a627876
Fix intentional bug in strang url
mgcth Mar 31, 2024
5edc303
Ignore import in mypy action
mgcth Mar 31, 2024
f266e06
Simplify mesan integration tests
mgcth Mar 31, 2024
e8a72be
Simplify metobs integration tests
mgcth Mar 31, 2024
7193fe4
Simplify strang unit tests
mgcth Apr 1, 2024
db0ab01
Bump python to 3.11 in actions, add 3.12 to tests
mgcth Apr 1, 2024
9c65b6e
Fix lint
mgcth Apr 1, 2024
970f2a0
Rename strang integration test files
mgcth Apr 1, 2024
db552db
Fix mesan integration test datetime span
mgcth Apr 1, 2024
1291c22
Don't use Python 3.12 in tests
mgcth Apr 1, 2024
91b53c8
Add more attributes to return for each api type
mgcth Apr 1, 2024
60d80cd
Fix metobs unit test
mgcth Apr 1, 2024
c3492bc
Update docs
mgcth Apr 1, 2024
18bf825
Add models to docs
mgcth Apr 1, 2024
ff94feb
Update metobs models
mgcth Apr 5, 2024
8b52adc
Update docs metobs models
mgcth Apr 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove banding config and add shapely and pydantic
mgcth committed Mar 25, 2024

Verified

This commit was signed with the committer’s verified signature.
mgcth Mladen Gibanica
commit 5357a92797b119ef594c1d3f1f1e06744cef0225
2 changes: 0 additions & 2 deletions .bandit

This file was deleted.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -18,6 +18,8 @@ dependencies = [
"pandas ~= 1.5",
"geopy ~= 2.2",
"arrow ~= 1.2",
"shapely ~= 2.0",
"pydantic ~= 2.6",
]

[project.urls]
@@ -27,7 +29,7 @@ repository = "https://github.com/Ingenjorsarbete-For-Klimatet/ifk-smhi"

[project.optional-dependencies]
lint = ["ruff ~= 0.3"]
type = ["mypy ~= 1.7", "types-requests ~= 2.31.0.20240310", "pandas-stubs ~= 1.5.3.230321"]
type = ["mypy ~= 1.7", "types-requests ~= 2.31", "pandas-stubs ~= 1.5"]
test = ["pytest ~= 7.1", "coverage ~= 6.5", "pytest-cov ~= 4.0"]
doc = [
"mkdocs ~= 1.4",