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]
|
types: [python]
|
||||||
files: ^examples/
|
files: ^examples/
|
||||||
args:
|
args:
|
||||||
- --disable=missing-docstring,invalid-name,bad-whitespace
|
- --disable=missing-docstring,invalid-name
|
||||||
- id: pylint
|
- id: pylint
|
||||||
name: lint (code)
|
name: lint (code)
|
||||||
types: [python]
|
types: [python]
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,9 @@
|
||||||
from jepler_udecimal import Decimal
|
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.
|
"""Convert Decimal to a money formatted string.
|
||||||
|
|
||||||
places: required number of places after the decimal point
|
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
|
:param bool clamp: If true, change exponents if too high
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(
|
def __init__( # pylint: disable=too-many-positional-arguments
|
||||||
self,
|
self,
|
||||||
prec=None,
|
prec=None,
|
||||||
rounding=None,
|
rounding=None,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue