Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Grib Processor
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Max Drexler
Grib Processor
Commits
ce167433
Commit
ce167433
authored
8 months ago
by
Max Drexler
Browse files
Options
Downloads
Patches
Plain Diff
mypy configuration
parent
9294f4f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#53709
failed
8 months ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
grib_processor/__main__.py
+1
-1
1 addition, 1 deletion
grib_processor/__main__.py
grib_processor/grib.py
+7
-4
7 additions, 4 deletions
grib_processor/grib.py
pyproject.toml
+7
-0
7 additions, 0 deletions
pyproject.toml
with
15 additions
and
5 deletions
grib_processor/__main__.py
+
1
−
1
View file @
ce167433
...
...
@@ -11,4 +11,4 @@ from grib_processor.main import main
if
__name__
==
"
__main__
"
:
sys
.
exit
(
main
())
sys
.
exit
(
main
())
# type: ignore[func-returns-value]
This diff is collapsed.
Click to expand it.
grib_processor/grib.py
+
7
−
4
View file @
ce167433
...
...
@@ -15,7 +15,7 @@ from typing import Generator
import
grib2io
from
ssec_amqp
import
utils
as
amqp_utils
from
typing_extensions
import
Literal
,
TypedDict
from
typing_extensions
import
Literal
,
TypedDict
,
TypeAlias
from
grib_processor
import
data
...
...
@@ -25,6 +25,9 @@ if sys.version_info < (3, 9):
else
:
import
importlib.resources
as
resources
# Custom types
IsoStr
:
TypeAlias
=
str
# Contains a serializable mapping of first_lat, first_lon, rows, cols,
# and generating_process_ids to xcd model names and ids.
#
...
...
@@ -55,8 +58,8 @@ class GribMetadata(TypedDict):
last_lon
:
float
|
None
forecast_hour
:
int
run_hour
:
int
model_time
:
datetime
start_time
:
datetime
model_time
:
IsoStr
start_time
:
IsoStr
projection
:
str
center_id
:
int
center_desc
:
str
...
...
@@ -82,7 +85,7 @@ class GribPayload(GribMetadata):
the file and server itself.
"""
__payload_gen_time__
:
datetime
__payload_gen_time__
:
IsoStr
__injector_script__
:
str
path
:
str
directory
:
str
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
7
−
0
View file @
ce167433
...
...
@@ -35,3 +35,10 @@ packages = ["grib_processor"]
[tool.setuptools.dynamic]
version
=
{
attr
=
"grib_processor.__version__"
}
[tool.mypy]
python_version
=
"3.8"
disable_error_code
=
[
"import-untyped"
,
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment