From 999b47ce9aa347d0bce2698e150ea105c805e42a Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Tue, 14 May 2024 17:05:16 +0200 Subject: [PATCH] Update dev dependencies, removing some unnecessary --- .pre-commit-config.yaml | 20 ++++++++++---------- pyproject.toml | 20 +++++++++----------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 296174d..654cb89 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for info on hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-ast @@ -19,43 +19,43 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: [Flake8-pyproject] - repo: https://github.com/PyCQA/isort - rev: 5.11.5 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/PyCQA/bandit - rev: 1.7.5 + rev: 1.7.8 hooks: - id: bandit args: ["-lll", "-vr", "kagi", "testproj"] - repo: https://github.com/Lucas-C/pre-commit-hooks-safety - rev: v1.3.1 + rev: v1.3.3 hooks: - id: python-safety-dependencies-check - # 51457: https://github.com/pytest-dev/py/issues/287 - args: ["--disable-telemetry", "--ignore=51457"] + # 65213: https://data.safetycli.com/vulnerabilities/CVE-2023-6129/65213/ + args: ["--disable-optional-telemetry", "--ignore=65213"] files: pyproject.toml - repo: https://github.com/asottile/pyupgrade - rev: v3.4.0 + rev: v3.15.2 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/hakancelikdev/unimport - rev: 0.16.0 + rev: 1.2.1 hooks: - id: unimport args: [--remove, --include-star-import] diff --git a/pyproject.toml b/pyproject.toml index 41f35c2..5890bf8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,28 +33,26 @@ classifiers = [ [tool.poetry.dependencies] Django = ">= 2.2" -python = ">= 3.8, < 4.0" +python = ">= 3.8.1, < 4.0" qrcode = ">= 6.1, < 8.0" webauthn = "^1.6.0" [tool.poetry.group.dev.dependencies] -black = "^23.3" -flake8 = "^5.0" +black = "^24.4" +flake8 = "^7.0" Flake8-pyproject = "^1.2.3" furo = "2024.04.27" invoke = "^2.0" -isort = "^5.11" -livereload = "^2.6" +isort = "^5.13" pretend = "^1.0.9" psutil = { version = "^5.7", optional = true } -pyOpenSSL = "^23.0" -pytest = "^7.1" -pytest-cov = "^3.0" +pyOpenSSL = "^24.1" +pytest = "^8.2" +pytest-cov = "^5.0" pytest-django = "^4.0" -pytest-sugar = "^0.9" -pytest-xdist = "^2.1" +pytest-sugar = "^1.0" +pytest-xdist = "^3.6" sphinx = "^6.0" -Werkzeug = "^2.0" [tool.autopub] project-name = "Kagi"