From 77b3687867324b75d7bfbfdf27d42580c1ccd2cd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 23 Sep 2024 23:08:04 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pycqa/pylint: v3.2.7 → v3.3.0](https://github.com/pycqa/pylint/compare/v3.2.7...v3.3.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f7f29f1..258a909 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ 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) From b25a006a4befbb8f9cdf8f8846850b35b03fce33 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 23 Sep 2024 20:50:06 -0500 Subject: [PATCH 2/2] 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,