From 9fd08213aebadbabac8d05fbf198fc2ca0834a76 Mon Sep 17 00:00:00 2001 From: Dani Hodovic Date: Mon, 7 Oct 2024 12:54:58 -0300 Subject: [PATCH] test: fix linting issues after dependency upgrades https://github.com/danihodovic/celery-exporter/pull/322 --- .gitignore | 1 + src/cli.py | 2 +- src/exporter.py | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 937072e..0de16f4 100644 --- a/.gitignore +++ b/.gitignore @@ -142,3 +142,4 @@ dmypy.json # End of https://www.toptal.com/developers/gitignore/api/python .virtualenv +.direnv diff --git a/src/cli.py b/src/cli.py index 684a448..f28de29 100644 --- a/src/cli.py +++ b/src/cli.py @@ -115,7 +115,7 @@ def _comma_seperated_argument(_ctx, _param, value): help="Prefix all metrics with a string. " "This option replaces the 'celery_*' part with a custom prefix. ", ) -def cli( # pylint: disable=too-many-arguments,too-many-locals +def cli( # pylint: disable=too-many-arguments,too-many-positional-arguments,too-many-locals broker_url, broker_transport_option, accept_content, diff --git a/src/exporter.py b/src/exporter.py index c856953..3e7f8f1 100644 --- a/src/exporter.py +++ b/src/exporter.py @@ -3,7 +3,6 @@ import re import sys import time - from collections import defaultdict from typing import Callable, Optional @@ -21,7 +20,7 @@ class Exporter: # pylint: disable=too-many-instance-attributes,too-many-branches state: State = None - # pylint: disable=too-many-arguments + # pylint: disable=too-many-arguments,too-many-positional-arguments def __init__( self, buckets=None,