Fix new diagnostics from new pylint
This commit is contained in:
parent
77b3687867
commit
b25a006a4b
3 changed files with 5 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ repos:
|
|||
types: [python]
|
||||
files: ^examples/
|
||||
args:
|
||||
- --disable=missing-docstring,invalid-name,bad-whitespace
|
||||
- --disable=missing-docstring,invalid-name
|
||||
- id: pylint
|
||||
name: lint (code)
|
||||
types: [python]
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@
|
|||
from jepler_udecimal import Decimal
|
||||
|
||||
|
||||
def moneyfmt(value, places=2, curr="", sep=",", dp=".", pos="", neg="-", trailneg=""):
|
||||
def moneyfmt(
|
||||
value, *, places=2, curr="", sep=",", dp=".", pos="", neg="-", trailneg=""
|
||||
):
|
||||
"""Convert Decimal to a money formatted string.
|
||||
|
||||
places: required number of places after the decimal point
|
||||
|
|
|
|||
|
|
@ -3357,7 +3357,7 @@ class Context(object):
|
|||
:param bool clamp: If true, change exponents if too high
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
def __init__( # pylint: disable=too-many-positional-arguments
|
||||
self,
|
||||
prec=None,
|
||||
rounding=None,
|
||||
|
|
|
|||
Loading…
Reference in a new issue