[style] Add pylint exceptions

This commit is contained in:
Davis Schirmer
2022-02-21 19:17:42 -05:00
parent ce5fd49821
commit 1bdc446765
3 changed files with 4 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ from ..file_writer import file_writer
class writer(file_writer):
def __init__(
def __init__( # pylint: disable=too-many-arguments
self,
path_: str,
metadata: Any = None,
@@ -32,5 +32,6 @@ class writer(file_writer):
def write_stdin(self, ts: float, data: Any) -> None:
pass
# pylint: disable=consider-using-with
def _open_file(self) -> None:
self.file = open(self.path, mode=self.mode, buffering=self.buffering)

View File

@@ -140,6 +140,7 @@ class writer(file_writer):
data = self.stdin_decoder.decode(data)
self.__write_event(ts, "i", data)
# pylint: disable=consider-using-with
def _open_file(self) -> None:
self.file = open(
self.path,

View File

@@ -35,3 +35,4 @@ disable = [
"missing-function-docstring",
"missing-module-docstring",
]
min-similarity-lines = 7