Skip to content

Commit 7e0d785

Browse files
authored
CI: stricter mypy config (#27)
1 parent ca2cc83 commit 7e0d785

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ dev = [
4848
[tool.hatch.version]
4949
path = "wavey/__init__.py"
5050

51+
[tool.mypy]
52+
python_version = "3.10"
53+
strict = true
54+
disallow_any_generics = false
55+
disallow_untyped_calls = false
56+
5157
[[tool.mypy.overrides]]
5258
module = [
5359
"mpl_toolkits.basemap",

wavey/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def main(
161161
colors = ("blue", "red")
162162

163163
for i, y in enumerate((bw_wave_height_ft, mon_wave_height_ft)):
164-
ax_height.plot(times, y, label=labels[i], color=colors[i]) # type: ignore[arg-type]
164+
ax_height.plot(times, y, label=labels[i], color=colors[i])
165165

166166
ax_height.set_ylim(0)
167167
ax_height.set_ylabel("Significant wave height (ft)")
@@ -171,7 +171,7 @@ def main(
171171
ax_height.grid(True, linestyle=":", alpha=0.7)
172172

173173
for i, y in enumerate((bw_wave_period_sec, mon_wave_period_sec)):
174-
ax_period.plot(times, y, label=labels[i], color=colors[i]) # type: ignore[arg-type]
174+
ax_period.plot(times, y, label=labels[i], color=colors[i])
175175

176176
ax_period.set_ylabel("Peak wave period (sec)")
177177
ax_period.yaxis.label.set_fontsize(14)

0 commit comments

Comments
 (0)