Skip to content

Commit 0156e19

Browse files
committed
Apply the pre-commit checks
1 parent 54c3c31 commit 0156e19

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

dpnp/tests/infra_warning_utils.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import json
22
import os
33
import sys
4-
from pathlib import Path
5-
64
from collections import Counter
5+
from pathlib import Path
76

87
import dpctl
98
import numpy
109

1110
import dpnp
11+
1212
from . import config as warn_config
1313

1414

@@ -92,14 +92,16 @@ def pytest_configure(self, _config):
9292

9393
p.mkdir(parents=True, exist_ok=True)
9494

95-
if (not self.events_artifact
95+
if (
96+
not self.events_artifact
9697
or Path(self.events_artifact).name != self.events_artifact
9798
):
9899
raise ValueError(
99100
f"Invalid events artifact filename: {self.events_artifact}"
100101
)
101102

102-
if (not self.summary_artifact
103+
if (
104+
not self.summary_artifact
103105
or Path(self.summary_artifact).name != self.summary_artifact
104106
):
105107
raise ValueError(
@@ -118,7 +120,6 @@ def pytest_configure(self, _config):
118120
f"(failed to initialize directory/files): {exc}"
119121
)
120122

121-
122123
def pytest_warning_recorded(self, warning_message, when, nodeid, location):
123124
if not self.enabled:
124125
return

0 commit comments

Comments
 (0)