fix: fix 'anomalous-backslash-in-string' for pylint
This commit is contained in:
parent
2fcff6b2a4
commit
9f76444380
7 changed files with 17 additions and 16 deletions
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
disable=all
|
disable=all
|
||||||
enable=dangerous-default-value,
|
enable=anomalous-backslash-in-string,
|
||||||
|
dangerous-default-value,
|
||||||
inconsistent-return-statements,
|
inconsistent-return-statements,
|
||||||
redefined-argument-from-local,
|
redefined-argument-from-local,
|
||||||
unspecified-encoding,
|
unspecified-encoding,
|
||||||
|
|
|
@ -378,7 +378,7 @@ class AppHandler:
|
||||||
:param create: Pass ``True`` here if you want to ensure the
|
:param create: Pass ``True`` here if you want to ensure the
|
||||||
returned path exists, creating it if necessary.
|
returned path exists, creating it if necessary.
|
||||||
|
|
||||||
:param \*args: Any additional args will be added as child
|
:param \\*args: Any additional args will be added as child
|
||||||
paths for the final value.
|
paths for the final value.
|
||||||
|
|
||||||
For instance, assuming ``/srv/envs/poser`` is the virtual
|
For instance, assuming ``/srv/envs/poser`` is the virtual
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# WuttJamaican -- Base package for Wutta Framework
|
# WuttJamaican -- Base package for Wutta Framework
|
||||||
# Copyright © 2023-2024 Lance Edgar
|
# Copyright © 2023-2025 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Wutta Framework.
|
# This file is part of Wutta Framework.
|
||||||
#
|
#
|
||||||
|
@ -93,7 +93,7 @@ class BatchHandler(GenericHandler):
|
||||||
|
|
||||||
:param progress: Optional progress indicator factory.
|
:param progress: Optional progress indicator factory.
|
||||||
|
|
||||||
:param \**kwargs: Additional kwargs to pass to the batch
|
:param \\**kwargs: Additional kwargs to pass to the batch
|
||||||
constructor.
|
constructor.
|
||||||
|
|
||||||
:returns: New batch; instance of :attr:`model_class`.
|
:returns: New batch; instance of :attr:`model_class`.
|
||||||
|
@ -372,7 +372,7 @@ class BatchHandler(GenericHandler):
|
||||||
:param user: :class:`~wuttjamaican.db.model.auth.User` who
|
:param user: :class:`~wuttjamaican.db.model.auth.User` who
|
||||||
might choose to execute the batch.
|
might choose to execute the batch.
|
||||||
|
|
||||||
:param \**kwargs: Execution kwargs for the batch, if known.
|
:param \\**kwargs: Execution kwargs for the batch, if known.
|
||||||
Should be similar to those for :meth:`execute()`.
|
Should be similar to those for :meth:`execute()`.
|
||||||
|
|
||||||
:returns: Text reason to prevent execution, or ``None``.
|
:returns: Text reason to prevent execution, or ``None``.
|
||||||
|
@ -414,7 +414,7 @@ class BatchHandler(GenericHandler):
|
||||||
:param user: Reference to current user who might choose to
|
:param user: Reference to current user who might choose to
|
||||||
execute the batch.
|
execute the batch.
|
||||||
|
|
||||||
:param \**kwargs: Execution kwargs for the batch; should be
|
:param \\**kwargs: Execution kwargs for the batch; should be
|
||||||
similar to those for :meth:`execute()`.
|
similar to those for :meth:`execute()`.
|
||||||
|
|
||||||
:returns: Markdown text describing batch execution.
|
:returns: Markdown text describing batch execution.
|
||||||
|
@ -457,7 +457,7 @@ class BatchHandler(GenericHandler):
|
||||||
|
|
||||||
:param progress: Optional progress indicator factory.
|
:param progress: Optional progress indicator factory.
|
||||||
|
|
||||||
:param \**kwargs: Additional kwargs as needed. These are
|
:param \\**kwargs: Additional kwargs as needed. These are
|
||||||
passed as-is to :meth:`why_not_execute()` and
|
passed as-is to :meth:`why_not_execute()` and
|
||||||
:meth:`execute()`.
|
:meth:`execute()`.
|
||||||
|
|
||||||
|
@ -494,9 +494,9 @@ class BatchHandler(GenericHandler):
|
||||||
|
|
||||||
:param progress: Optional progress indicator factory.
|
:param progress: Optional progress indicator factory.
|
||||||
|
|
||||||
:param \**kwargs: Additional kwargs which may affect the batch
|
:param \\**kwargs: Additional kwargs which may affect the
|
||||||
execution behavior. There are none by default, but some
|
batch execution behavior. There are none by default, but
|
||||||
handlers may declare/use them.
|
some handlers may declare/use them.
|
||||||
|
|
||||||
:returns: ``None`` by default, but subclass can return
|
:returns: ``None`` by default, but subclass can return
|
||||||
whatever it likes, in which case that will be also returned
|
whatever it likes, in which case that will be also returned
|
||||||
|
|
|
@ -390,7 +390,7 @@ class EmailHandler(GenericHandler):
|
||||||
:param default_subject: Optional :attr:`~Message.subject`
|
:param default_subject: Optional :attr:`~Message.subject`
|
||||||
template/string to use, if config does not specify one.
|
template/string to use, if config does not specify one.
|
||||||
|
|
||||||
:param \**kwargs: Any remaining kwargs are passed as-is to
|
:param \\**kwargs: Any remaining kwargs are passed as-is to
|
||||||
:meth:`make_message()`. More on this below.
|
:meth:`make_message()`. More on this below.
|
||||||
|
|
||||||
:returns: :class:`~wuttjamaican.email.Message` object.
|
:returns: :class:`~wuttjamaican.email.Message` object.
|
||||||
|
@ -803,7 +803,7 @@ class EmailHandler(GenericHandler):
|
||||||
context = {'data': [1, 2, 3]}
|
context = {'data': [1, 2, 3]}
|
||||||
app.send_email('foo', context, to='me@example.com', cc='bobby@example.com')
|
app.send_email('foo', context, to='me@example.com', cc='bobby@example.com')
|
||||||
|
|
||||||
:param \**kwargs: Any remaining kwargs are passed along to
|
:param \\**kwargs: Any remaining kwargs are passed along to
|
||||||
:meth:`make_auto_message()`. So, not used if you provide
|
:meth:`make_auto_message()`. So, not used if you provide
|
||||||
the ``message``.
|
the ``message``.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -268,7 +268,7 @@ class InstallHandler(GenericHandler):
|
||||||
:param dbinfo: Dict of DB connection info as obtained from
|
:param dbinfo: Dict of DB connection info as obtained from
|
||||||
:meth:`get_dbinfo()`.
|
:meth:`get_dbinfo()`.
|
||||||
|
|
||||||
:param \**kwargs: Extra template context.
|
:param \\**kwargs: Extra template context.
|
||||||
|
|
||||||
:returns: Dict for global template context.
|
:returns: Dict for global template context.
|
||||||
|
|
||||||
|
@ -394,7 +394,7 @@ class InstallHandler(GenericHandler):
|
||||||
|
|
||||||
:param output_path: Path to which output should be written.
|
:param output_path: Path to which output should be written.
|
||||||
|
|
||||||
:param \**kwargs: Extra context for the template.
|
:param \\**kwargs: Extra context for the template.
|
||||||
|
|
||||||
Some context will be provided automatically for the template,
|
Some context will be provided automatically for the template,
|
||||||
but these may be overridden via the ``**kwargs``:
|
but these may be overridden via the ``**kwargs``:
|
||||||
|
|
|
@ -47,7 +47,7 @@ class PeopleHandler(GenericHandler):
|
||||||
:attr:`~wuttjamaican.db.model.base.Person.full_name` if not
|
:attr:`~wuttjamaican.db.model.base.Person.full_name` if not
|
||||||
specified.
|
specified.
|
||||||
|
|
||||||
:param \**kwargs: All kwargs are passed as-is to the model
|
:param \\**kwargs: All kwargs are passed as-is to the model
|
||||||
class constructor.
|
class constructor.
|
||||||
|
|
||||||
:rtype: :class:`~wuttjamaican.db.model.base.Person`
|
:rtype: :class:`~wuttjamaican.db.model.base.Person`
|
||||||
|
|
|
@ -175,7 +175,7 @@ def make_full_name(*parts):
|
||||||
"""
|
"""
|
||||||
Make a "full name" from the given parts.
|
Make a "full name" from the given parts.
|
||||||
|
|
||||||
:param \*parts: Distinct name values which should be joined
|
:param \\*parts: Distinct name values which should be joined
|
||||||
together to make the full name.
|
together to make the full name.
|
||||||
|
|
||||||
:returns: The full name.
|
:returns: The full name.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue