From 7447efd32be5eb649b19930c6c3eda14f3cb9b28 Mon Sep 17 00:00:00 2001 From: jgstew Date: Thu, 29 Feb 2024 10:36:31 -0500 Subject: [PATCH] update pre-commits --- .pre-commit-config.yaml | 6 +++--- examples/baseline_by_relevance.py | 1 + examples/computers_delete_by_file.py | 1 + examples/export_bes_by_relevance.py | 1 + examples/export_bes_by_relevance_async.py | 1 + examples/export_bes_by_relevance_threads.py | 1 + examples/fixlet_add_mime_field.py | 1 + examples/mailbox_files_create.py | 1 + examples/mailbox_files_list.py | 1 + examples/parameters_secure_sourced_fixlet_action.py | 1 + examples/parameters_sourced_fixlet_action.py | 1 + examples/session_relevance_from_file.py | 1 + examples/wake_on_lan.py | 1 + src/bescli/__init__.py | 1 + 14 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2a63908..fcb1cdc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ # https://github.com/pre-commit/pre-commit-hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.5.0 hooks: - id: check-yaml - id: check-json @@ -27,7 +27,7 @@ repos: # - id: no-commit-to-branch # args: [--branch, main] - repo: https://github.com/adrienverge/yamllint.git - rev: v1.28.0 + rev: v1.35.1 hooks: - id: yamllint args: [-c=.yamllint.yaml] @@ -36,6 +36,6 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 24.2.0 hooks: - id: black diff --git a/examples/baseline_by_relevance.py b/examples/baseline_by_relevance.py index 21938d4..7ef1be5 100644 --- a/examples/baseline_by_relevance.py +++ b/examples/baseline_by_relevance.py @@ -3,6 +3,7 @@ requires `besapi`, install with command `pip install besapi` """ + import datetime import os diff --git a/examples/computers_delete_by_file.py b/examples/computers_delete_by_file.py index 1b358a1..8542fc2 100644 --- a/examples/computers_delete_by_file.py +++ b/examples/computers_delete_by_file.py @@ -3,6 +3,7 @@ requires `besapi`, install with command `pip install besapi` """ + import os import besapi diff --git a/examples/export_bes_by_relevance.py b/examples/export_bes_by_relevance.py index 3f2a78a..9d959c8 100644 --- a/examples/export_bes_by_relevance.py +++ b/examples/export_bes_by_relevance.py @@ -3,6 +3,7 @@ requires `besapi`, install with command `pip install besapi` """ + import time import besapi diff --git a/examples/export_bes_by_relevance_async.py b/examples/export_bes_by_relevance_async.py index 18dd83a..a2cd8d3 100644 --- a/examples/export_bes_by_relevance_async.py +++ b/examples/export_bes_by_relevance_async.py @@ -3,6 +3,7 @@ requires `besapi`, install with command `pip install besapi` """ + import asyncio import configparser import os diff --git a/examples/export_bes_by_relevance_threads.py b/examples/export_bes_by_relevance_threads.py index 7881cbb..20778bb 100644 --- a/examples/export_bes_by_relevance_threads.py +++ b/examples/export_bes_by_relevance_threads.py @@ -3,6 +3,7 @@ requires `besapi`, install with command `pip install besapi` """ + import concurrent.futures import time diff --git a/examples/fixlet_add_mime_field.py b/examples/fixlet_add_mime_field.py index 1952f22..cafe104 100644 --- a/examples/fixlet_add_mime_field.py +++ b/examples/fixlet_add_mime_field.py @@ -3,6 +3,7 @@ Need to url escape site name https://bigfix:52311/api/sites """ + import lxml.etree import besapi diff --git a/examples/mailbox_files_create.py b/examples/mailbox_files_create.py index da29f72..695b3a9 100644 --- a/examples/mailbox_files_create.py +++ b/examples/mailbox_files_create.py @@ -3,6 +3,7 @@ requires `besapi`, install with command `pip install besapi` """ + import os import besapi diff --git a/examples/mailbox_files_list.py b/examples/mailbox_files_list.py index ef94f40..e0b4f40 100644 --- a/examples/mailbox_files_list.py +++ b/examples/mailbox_files_list.py @@ -3,6 +3,7 @@ requires `besapi`, install with command `pip install besapi` """ + import besapi diff --git a/examples/parameters_secure_sourced_fixlet_action.py b/examples/parameters_secure_sourced_fixlet_action.py index afeec9d..9c9a05a 100644 --- a/examples/parameters_secure_sourced_fixlet_action.py +++ b/examples/parameters_secure_sourced_fixlet_action.py @@ -3,6 +3,7 @@ requires `besapi`, install with command `pip install besapi` """ + import besapi # reference: https://software.bigfix.com/download/bes/100/util/BES10.0.7.52.xsd diff --git a/examples/parameters_sourced_fixlet_action.py b/examples/parameters_sourced_fixlet_action.py index 602bdf4..c0f3552 100644 --- a/examples/parameters_sourced_fixlet_action.py +++ b/examples/parameters_sourced_fixlet_action.py @@ -3,6 +3,7 @@ requires `besapi`, install with command `pip install besapi` """ + import besapi # reference: https://software.bigfix.com/download/bes/100/util/BES10.0.7.52.xsd diff --git a/examples/session_relevance_from_file.py b/examples/session_relevance_from_file.py index 6063ffd..bad0e29 100644 --- a/examples/session_relevance_from_file.py +++ b/examples/session_relevance_from_file.py @@ -3,6 +3,7 @@ requires `besapi`, install with command `pip install besapi` """ + import besapi diff --git a/examples/wake_on_lan.py b/examples/wake_on_lan.py index 61f2498..2a98862 100644 --- a/examples/wake_on_lan.py +++ b/examples/wake_on_lan.py @@ -13,6 +13,7 @@ - https://localhost:52311/rd-proxy?RequestUrl=cgi-bin/bfenterprise/BESMirrorRequest.exe/-textreport - Gather Download Request: https://localhost:52311/rd-proxy?RequestUrl=bfmirror/downloads/_ACTION_ID_/_DOWNLOAD_ID_ """ + import besapi diff --git a/src/bescli/__init__.py b/src/bescli/__init__.py index b2069aa..c3e459b 100644 --- a/src/bescli/__init__.py +++ b/src/bescli/__init__.py @@ -1,6 +1,7 @@ """ bescli provides a command line interface to interact with besapi """ + # https://stackoverflow.com/questions/279237/import-a-module-from-a-relative-path/4397291 from . import bescli