From b25a006a4befbb8f9cdf8f8846850b35b03fce33 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 23 Sep 2024 20:50:06 -0500 Subject: [PATCH] Fix new diagnostics from new pylint --- .pre-commit-config.yaml | 2 +- examples/udecimal_moneyfmt.py | 4 +++- jepler_udecimal/__init__.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 258a909..b4a2f7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/examples/udecimal_moneyfmt.py b/examples/udecimal_moneyfmt.py index d4eb10f..7ce8559 100644 --- a/examples/udecimal_moneyfmt.py +++ b/examples/udecimal_moneyfmt.py @@ -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 diff --git a/jepler_udecimal/__init__.py b/jepler_udecimal/__init__.py index 61841d4..84e5bcf 100644 --- a/jepler_udecimal/__init__.py +++ b/jepler_udecimal/__init__.py @@ -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,