diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7f29f1..b4a2f7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] 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,