From 6b3d5617679473a36427f081d2980d90029e45f0 Mon Sep 17 00:00:00 2001 From: John Hollowell Date: Sat, 11 Nov 2023 00:54:53 +0000 Subject: [PATCH] Remove support for py3.7; Update pre-commit deps --- .devcontainer/devcontainer.json | 2 +- .github/workflows/ci.yaml | 1 - .pre-commit-config.yaml | 18 +++++++++--------- proxmoxer/backends/https.py | 2 -- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 85195a0..0511e10 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,7 +7,7 @@ "context": "..", "args": { // Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 - "VARIANT": "3.7" + "VARIANT": "3.8" } }, // Set *default* container specific settings.json values on container create. diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e4f2f4e..e03614f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,6 @@ jobs: fail-fast: false matrix: python-version: - - "3.7" - "3.8" - "3.9" - "3.10" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c9159e0..1ad6def 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: ###### FORMATTING ###### - - repo: https://github.com/psf/black - rev: 22.6.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 23.11.0 hooks: - id: black language_version: python3 # Should be a command that runs python3.6+ - repo: https://github.com/PyCQA/isort - rev: 5.11.5 + rev: 5.12.0 hooks: - id: isort name: isort (python) @@ -17,13 +17,13 @@ repos: ###### LINTING ###### - repo: https://github.com/PyCQA/bandit - rev: 1.7.4 + rev: 1.7.5 hooks: - id: bandit args: ["--configfile", ".bandit", "--baseline", "tests/known_issues.json"] - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 6.1.0 hooks: - id: flake8 # any flake8 plugins must be included in the hook venv @@ -35,7 +35,7 @@ repos: # - id: pylint - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.5.0 hooks: - id: check-case-conflict - id: check-symlinks @@ -46,13 +46,13 @@ repos: args: [--fix=no] - repo: https://github.com/asottile/blacken-docs - rev: v1.12.1 + rev: 1.16.0 hooks: - id: blacken-docs - additional_dependencies: [black==21.5b1] + additional_dependencies: [black==23.11.0] - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.9.0 + rev: v1.10.0 hooks: - id: python-no-eval - id: rst-backticks diff --git a/proxmoxer/backends/https.py b/proxmoxer/backends/https.py index b5292f5..3c210b8 100644 --- a/proxmoxer/backends/https.py +++ b/proxmoxer/backends/https.py @@ -174,7 +174,6 @@ def request( cert=None, serializer=None, ): - a = auth or self.auth c = cookies or self.cookies @@ -265,7 +264,6 @@ def __init__( path_prefix=None, service="PVE", ): - host_port = "" if len(host.split(":")) > 2: # IPv6 if host.startswith("["):