Compare commits

...

3 commits

Author SHA1 Message Date
d84a97b2e2
Merge pull request #55 from jepler/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-09-23 21:03:18 -05:00
b25a006a4b Fix new diagnostics from new pylint 2024-09-23 20:50:06 -05:00
pre-commit-ci[bot]
77b3687867
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pycqa/pylint: v3.2.7 → v3.3.0](https://github.com/pycqa/pylint/compare/v3.2.7...v3.3.0)
2024-09-23 23:08:04 +00:00
3 changed files with 6 additions and 4 deletions

View file

@ -18,14 +18,14 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/pylint
rev: v3.2.7
rev: v3.3.0
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]

View file

@ -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

View file

@ -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,