mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 03:38:03 +01:00
[style] Add pylint exceptions
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -35,3 +35,4 @@ disable = [
|
||||
"missing-function-docstring",
|
||||
"missing-module-docstring",
|
||||
]
|
||||
min-similarity-lines = 7
|
||||
|
||||
Reference in New Issue
Block a user