From 20ebf8f1b8c8ba040ade81ba5352d6aae05bbfc6 Mon Sep 17 00:00:00 2001 From: ajasnosz <139114006+ajasnosz@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:15:58 +0200 Subject: [PATCH] chore: update pre-commit config (#1072) --- .pre-commit-config.yaml | 13 +++++++------ splunk_connect_for_snmp/snmp/manager.py | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8855eed80..7ca23a8e4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,27 +15,28 @@ # repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.6.0 hooks: - id: check-merge-conflict - id: debug-statements - repo: https://github.com/asottile/pyupgrade - rev: v2.31.0 + rev: v3.17.0 hooks: - id: pyupgrade args: - --py3-plus - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 24.8.0 hooks: - id: black - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: ["--profile", "black"] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.931 + rev: v1.11.2 hooks: - id: mypy - additional_dependencies: [types-all] + exclude: (^ui_tests|^test*|^docs) + additional_dependencies: [types-requests, types-PyYAML] diff --git a/splunk_connect_for_snmp/snmp/manager.py b/splunk_connect_for_snmp/snmp/manager.py index 32c8756d7..54c8fa308 100644 --- a/splunk_connect_for_snmp/snmp/manager.py +++ b/splunk_connect_for_snmp/snmp/manager.py @@ -294,7 +294,7 @@ def do_work( self, ir: InventoryRecord, walk: bool = False, - profiles: List[str] = None, + profiles: Union[List[str], None] = None, ): retry = False address = transform_address_to_key(ir.address, ir.port)