Skip to content

Commit 82634b7

Browse files
alexfiklinducer
authored andcommitted
pyproject: remove mypy ignores
1 parent 6894a67 commit 82634b7

4 files changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ jobs:
5050
- uses: actions/checkout@v4
5151
- name: "Main Script"
5252
run: |
53+
EXTRA_INSTALL="mypy pytest types-colorama types-Pygments"
5354
curl -L -O https://tiker.net/ci-support-v0
5455
. ./ci-support-v0
56+
5557
build_py_project_in_conda_env
56-
python -m pip install mypy
5758
./run-mypy.sh
5859
5960
pytest:

.gitlab-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,10 @@ Ruff:
158158

159159
Mypy:
160160
script: |
161-
EXTRA_INSTALL="pybind11 numpy"
161+
EXTRA_INSTALL="mypy pybind11 numpy types-colorama types-Pygments"
162162
curl -L -O https://tiker.net/ci-support-v0
163163
. ./ci-support-v0
164164
build_py_project_in_venv
165-
python -m pip install mypy
166165
./run-mypy.sh
167166
tags:
168167
- python3

loopy/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def __init__(
227227
kwargs = _apply_legacy_map(self._legacy_options_map, kwargs)
228228

229229
try:
230-
import colorama # noqa
230+
import colorama # noqa: F401
231231
except ImportError:
232232
allow_terminal_colors_def = False
233233
else:

pyproject.toml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,12 @@ module = [
168168

169169
[[tool.mypy.overrides]]
170170
module = [
171+
"IPython.*",
172+
"fparser.*",
171173
"islpy.*",
172-
"pymbolic.*",
173-
"genpy.*",
174-
"pyopencl.*",
175-
"colorama.*",
176-
"codepy.*",
177174
"mako.*",
178-
"fparser.*",
179175
"ply.*",
180-
"pygments.*",
181-
"IPython.*",
176+
"pyopencl.*",
182177
]
183178
ignore_missing_imports = true
184179

0 commit comments

Comments
 (0)