Skip to content

Commit c574301

Browse files
committed
clean up tool.coverage exclude section
remove self explanatory comment
1 parent 6ee8840 commit c574301

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ docstring-code-format = true
257257
addopts = "-n auto --durations=30 --quiet -r xXs --color=yes --import-mode=importlib"
258258
filterwarnings = [
259259
# NOTE: the LAST matching option would be used
260-
"ignore::UserWarning", # Ignore UserWarning
260+
"ignore::UserWarning",
261261
]
262262

263263
[tool.coverage.run]
@@ -273,12 +273,7 @@ omit = [
273273
[tool.coverage.report]
274274
exclude_also = [
275275
"@deprecated",
276-
"def __repr__",
277276
"except ImportError:",
278-
"if TYPE_CHECKING:",
279-
"if self.debug:",
280-
"if settings.DEBUG",
281-
"pragma: no cover",
282277
"raise NotImplementedError",
283278
"show_plot",
284279
]

src/pymatgen/io/vasp/outputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5828,7 +5828,7 @@ def read_data(dtype):
58285828
@property
58295829
def cder(self) -> NDArray:
58305830
"""The complex derivative of the orbitals with respect to k."""
5831-
if self.cder_real.shape[0] != self.cder_real.shape[1]: # pragma: no cover
5831+
if self.cder_real.shape[0] != self.cder_real.shape[1]:
58325832
warnings.warn(
58335833
"Not all band pairs are present in the WAVEDER file."
58345834
"If you want to get all the matrix elements set LVEL=.True. in the INCAR.",

0 commit comments

Comments
 (0)