Skip to content

Commit 0f2460b

Browse files
committed
Lint
1 parent c3627c1 commit 0f2460b

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

consolekit/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def resolve_command(
353353
self,
354354
ctx: click.Context,
355355
args: List[str],
356-
) -> Tuple[str, click.Command, List[str]]: # noqa: D102
356+
) -> Tuple[str, click.Command, List[str]]:
357357
"""
358358
Resolve the requested command belonging to this group, and print a suggestion if it can't be found.
359359

consolekit/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def prompt_func(text):
157157
try:
158158
result = value_proc(value)
159159
except click.UsageError as e:
160-
click.echo(f"Error: {e.message}", err=err) # noqa: B306
160+
click.echo(f"Error: {e.message}", err=err)
161161
continue
162162

163163
if not confirmation_prompt:

consolekit/terminal_colours.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def resolve_color_default(color: ColourTrilean = None) -> ColourTrilean:
154154
if it is not :py:obj:`None`. Otherwise falls back to checking the environment variables.
155155
156156
:param color:
157-
""" # noqa: D400
157+
"""
158158

159159
if color is not None:
160160
return color
@@ -225,7 +225,7 @@ class Colour(str):
225225
reset: str
226226
stack: Union[Deque[str], List[str]]
227227

228-
def __new__(cls, style: str, stack: Union[Deque[str], List[str]], reset: str) -> "Colour": # noqa D102
228+
def __new__(cls, style: str, stack: Union[Deque[str], List[str]], reset: str) -> "Colour": # noqa: D102
229229
self = super().__new__(cls, style) # type: ignore
230230
self.style = style
231231
self.stack = stack

consolekit/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def check_stdout(
179179
return True
180180

181181

182-
class CliRunner(click.testing.CliRunner): # noqa: D101
182+
class CliRunner(click.testing.CliRunner):
183183
"""
184184
Provides functionality to invoke and test a Click script in an isolated environment.
185185

consolekit/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,15 @@ def overtype(
149149
file: Optional[IO] = None,
150150
flush: bool = False,
151151
) -> None:
152-
"""
153-
Print ``objects`` to the text stream ``file``, starting with ``"\\r"``, separated by ``sep``
152+
r"""
153+
Print ``objects`` to the text stream ``file``, starting with ``"\r"``, separated by ``sep``
154154
and followed by ``end``.
155155
156156
``sep``, ``end``, ``file`` and ``flush``, if present, must be given as keyword arguments
157157
158158
All non-keyword arguments are converted to strings like :class:`str` does and written to the stream,
159159
separated by `sep` and followed by `end`.
160-
If no such arguments are given, :func:`~consolekit.utils.overtype` will just write ``"\\r"``.
160+
If no such arguments are given, :func:`~consolekit.utils.overtype` will just write ``"\r"``.
161161
162162
.. TODO:: This does not currently work in the PyCharm console, at least on Windows
163163
@@ -167,7 +167,7 @@ def overtype(
167167
:param file: An object with a ``write(string)`` method.
168168
:default file: ``sys.stdout``
169169
:param flush: If :py:obj:`True`, the stream is forcibly flushed.
170-
""" # noqa D400
170+
""" # noqa: D400
171171

172172
object0 = f"\r{objects[0]}"
173173
objects = (object0, *objects[1:])

0 commit comments

Comments
 (0)