Skip to content

Commit 8449dcc

Browse files
authored
Update static analysis and coverage configurations (#542)
* Enhance static analysis and coverage configurations * Sort dependency list in pyproject.toml * add whitespace between directive config and files
1 parent e623618 commit 8449dcc

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/tutorials/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
```{toctree}
44
:hidden:
5+
56
quickstart
67
creation
78
compression

pyproject.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ classifiers = [
2525
dependencies = [
2626
"click (>=8.1.7,<9.0.0)",
2727
"click-params (>=0.5.0,<0.6.0)",
28-
"zarr (>=3.0.6,<4.0.0)",
2928
"dask (>=2024.12.0)",
30-
"tqdm (>=4.67.0,<5.0.0)",
31-
"psutil (>=6.1.0,<7.0.0)",
3229
"fsspec (>=2024.10.0)",
33-
"segy (>=0.4.0,<0.5.0)",
30+
"psutil (>=6.1.0,<7.0.0)",
3431
"rich (>=13.9.4,<14.0.0)",
32+
"segy (>=0.4.0,<0.5.0)",
33+
"tqdm (>=4.67.0,<5.0.0)",
34+
"zarr (>=3.0.6,<4.0.0)",
3535
]
3636

3737
[project.optional-dependencies]
@@ -105,6 +105,7 @@ relative_files = true
105105
show_missing = true
106106
fail_under = 90
107107
exclude_also = [
108+
"if __name__ == __main__:",
108109
"if TYPE_CHECKING:",
109110
"raise NotImplementedError",
110111
]
@@ -117,10 +118,14 @@ lines_after_imports = 2
117118
[tool.mypy]
118119
strict = true
119120
warn_unreachable = true
121+
warn_redundant_casts = true
122+
warn_unused_ignores = true
120123
pretty = true
121124
show_column_numbers = true
122125
show_error_codes = true
123126
show_error_context = true
127+
disallow_untyped_defs = true # for strict mypy: (this is the tricky one)
128+
plugins = ["numpy.typing.mypy_plugin"]
124129

125130
[[tool.mypy.overrides]]
126131
module = ["zarr"]

0 commit comments

Comments
 (0)