Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,12 @@ repos:
hooks:
- id: black
language_version: python3

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.18.2'
hooks:
- id: mypy
name: mypy
additional_dependencies: [types-PyYAML==6.0.12.20240808, types-python-dateutil]


1 change: 1 addition & 0 deletions ci/environment-3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- intake>=0.7
- intake-esm-access
- itables
- mypy
- polars>=1.12
- pytest
- pip
Expand Down
1 change: 1 addition & 0 deletions ci/environment-3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- intake>=0.7
- intake-esm-access
- itables
- mypy
- polars>=1.12
- pytest
- pip
Expand Down
1 change: 1 addition & 0 deletions ci/environment-3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- intake>=0.7
- intake-esm-access
- itables
- mypy
- polars>=1.12
- pytest
- pip
Expand Down
1 change: 1 addition & 0 deletions ci/environment-3.13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- intake>=0.7
- intake-esm
- itables
- mypy
- polars>=1.12
- pytest
- pip
Expand Down
4 changes: 2 additions & 2 deletions src/intake_dataframe_catalog/_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ def set_pd_options(self) -> None:
def display_type(self) -> _DisplayType:
try:
# Check for Jupyter Notebook
ipy = get_ipython()
ipy = get_ipython() # type: ignore[name-defined]
if hasattr(ipy, "kernel"):
return _DisplayType.JUPYTER_NOTEBOOK
elif hasattr(ipy, "config"):
else:
return _DisplayType.IPYTHON_REPL
except NameError:
return _DisplayType.REGULAR_REPL
Expand Down
Loading