Skip to content

Commit

Permalink
Remove support for py3.7; Update pre-commit deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jhollowe committed Nov 11, 2023
1 parent b71d565 commit 769bea2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
Expand Down
20 changes: 10 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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+
language_version: python3.8 # the minimum version this library supports

- repo: https://github.com/PyCQA/isort
rev: 5.11.5
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 0 additions & 2 deletions proxmoxer/backends/https.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ def request(
cert=None,
serializer=None,
):

a = auth or self.auth
c = cookies or self.cookies

Expand Down Expand Up @@ -265,7 +264,6 @@ def __init__(
path_prefix=None,
service="PVE",
):

host_port = ""
if len(host.split(":")) > 2: # IPv6
if host.startswith("["):
Expand Down

0 comments on commit 769bea2

Please sign in to comment.