Compare commits
7 commits
7fa07ab555
...
8720539833
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8720539833 | ||
| d84a97b2e2 | |||
| b25a006a4b | |||
|
|
77b3687867 | ||
| 691b96d72d | |||
|
|
93fccb242d | ||
| 2656301150 |
3 changed files with 6 additions and 4 deletions
|
|
@ -18,14 +18,14 @@ repos:
|
|||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- repo: https://github.com/pycqa/pylint
|
||||
rev: v3.2.6
|
||||
rev: v3.3.1
|
||||
hooks:
|
||||
- id: pylint
|
||||
name: lint (examples)
|
||||
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