Skip to content

Commit

Permalink
Run ert typing on everest
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindeide committed Sep 19, 2024
1 parent 78e07a5 commit 550af72
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@ jobs:

- name: Install ERT and dependencies
run: |
uv pip install ".[dev, types]"
uv pip install ".[dev, types, everest]"
- run: echo ::add-matcher::.github/mypy-matcher.json
- name: Run mypy
- name: Run mypy ert
run: |
mypy src/ert
- name: Run mypy everest
run: |
mypy src/everest
39 changes: 39 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,42 @@ ignore_missing_imports = True

[mypy-seaborn.*]
ignore_missing_imports = True

[mypy-opm.*]
ignore_missing_imports = True

[mypy-colorama.*]
ignore_missing_imports = True

[mypy-ruamel.*]
ignore_missing_imports = True

[mypy-resdata.*]
ignore_missing_imports = True
disable_error_code = import-untyped

[mypy-everest.*]
disable_error_code = dict-item,
no-untyped-def,
call-overload,
union-attr,
no-untyped-call,
var-annotated,
index,
call-arg,
unused-ignore,
arg-type,
type-arg,
type-var,
assignment,
typeddict-item,
attr-defined,
comparison-overlap,
return-value,
name-defined

[mypy-tests.*]
disable_error_code = no-untyped-def, no-untyped-call, typeddict-item, assignment

[mypy-ieverest.*]
ignore_errors = True
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ types = [
"types-docutils",
"types-tqdm",
"types-psutil",
"types-setuptools"
]
everest = [
"python-dateutil",
Expand Down

0 comments on commit 550af72

Please sign in to comment.