Skip to content

Commit 03ba91d

Browse files
committed
Autoformat with ruff
1 parent cd66c8a commit 03ba91d

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

src/zeit/nightwatch/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__version__ = "2.3.0.dev0"
22

3-
from .requests import Browser
3+
from .requests import Browser as Browser

src/zeit/nightwatch/jsonreport.py

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def unconfigure(config):
2828

2929

3030
class JSONLinesReport:
31-
3231
def __init__(self, output):
3332
self.output = output
3433
self.records = []

src/zeit/nightwatch/prometheus.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def unconfigure(config):
5555

5656

5757
class PrometheusReport:
58-
5958
SUCCESSFUL_OUTCOMES = ["passed", "skipped"]
6059

6160
def __init__(self, config):
@@ -81,9 +80,7 @@ def pytest_runtest_logreport(self, report):
8180
def pytest_sessionfinish(self, session):
8281
opt = self.config.option
8382
if opt.verbose > 0:
84-
print(
85-
"\n" + prometheus_client.generate_latest(self.registry).decode("utf-8")
86-
)
83+
print("\n" + prometheus_client.generate_latest(self.registry).decode("utf-8"))
8784
if not opt.prometheus:
8885
return
8986
prometheus_client.push_to_gateway(

src/zeit/nightwatch/pytest.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ def pytest_configure(config):
4444
"%(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s"
4545
)
4646

47-
config.addinivalue_line(
48-
"markers", "playwright: Playwright test (helper for test selection)"
49-
)
47+
config.addinivalue_line("markers", "playwright: Playwright test (helper for test selection)")
5048

5149
# Is there seriously no proper API?
5250
config._inicache["junit_logging"] = "all"

0 commit comments

Comments
 (0)