Skip to content

Commit 5c59e59

Browse files
committed
Fix lint
1 parent f5e47e7 commit 5c59e59

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/buildkite_test_collector/pytest_plugin/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def pytest_unconfigure(config):
5656
config.pluginmanager.unregister(plugin)
5757

5858
def pytest_addoption(parser):
59+
"""add custom option to pytest"""
5960
group = parser.getgroup('buildkite', 'Buildkite Test Collector')
6061
group.addoption(
6162
'--json',

src/buildkite_test_collector/pytest_plugin/buildkite_plugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"""Buildkite test collector plugin for Pytest"""
2+
import json
23

34
from uuid import uuid4
45

56
from ..collector.payload import TestData
67

7-
import json
8-
98
class BuildkitePlugin:
109
"""Buildkite test collector plugin for Pytest"""
1110

@@ -52,5 +51,5 @@ def pytest_runtest_logreport(self, report):
5251

5352
def save_payload(self, path):
5453
""" Save payload into a json file """
55-
with open(path, "w") as f:
54+
with open(path, "w", encoding="utf-8") as f:
5655
json.dump(self.payload.as_json(), f)

0 commit comments

Comments
 (0)