From a373bf28d87885d898797db61e7e1983419a80db Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 3 May 2024 10:13:21 -0400 Subject: [PATCH] chore: pre-commit.ci autoupdate (#117) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: pre-commit.ci autoupdate updates: - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) - [github.com/shellcheck-py/shellcheck-py: v0.9.0.6 → v0.10.0.1](https://github.com/shellcheck-py/shellcheck-py/compare/v0.9.0.6...v0.10.0.1) - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.3.5) - [github.com/PyCQA/bandit: 1.7.7 → 1.7.8](https://github.com/PyCQA/bandit/compare/1.7.7...1.7.8) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0) - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.3.5) - [github.com/python-poetry/poetry: 1.7.0 → 1.8.0](https://github.com/python-poetry/poetry/compare/1.7.0...1.8.0) - [github.com/errata-ai/vale: v3.1.0 → v3.3.1](https://github.com/errata-ai/vale/compare/v3.1.0...v3.3.1) * style: auto-fixes from pre-commit.ci Configured by .pre-commit-config.yaml Checks run by https://pre-commit.ci * chore: don't upgrade to alpha version of prettier pre-commit * style: reorder-python-imports only manually This prevents a battle between reprder-python-imports and Black style (here as implemented in ruff) about blank line after file docstring. * ci: skip gitlint-ci for pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alexander Dupuy <33216+dupuy@users.noreply.github.com> Co-authored-by: Alexander Dupuy --- .pre-commit-config.yaml | 16 +++++++++------- poetry.lock | 33 +++++++++++++++++---------------- reliabot/__init__.py | 1 + reliabot/reliabot.py | 1 + tidy-md-refs.py | 1 + 5 files changed, 29 insertions(+), 23 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d428a45..96a1edb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -139,7 +139,7 @@ repos: # Shell - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.9.0.6 + rev: v0.10.0.1 hooks: - id: shellcheck - repo: https://github.com/scop/pre-commit-shfmt @@ -166,7 +166,7 @@ repos: # Python - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.2 + rev: v0.3.5 hooks: # Run the linter. - id: ruff @@ -185,6 +185,7 @@ repos: - --remove-import=from typing import Set - --remove-import=from typing import Tuple files: ^(?!setup.py$).*\.py$ + stages: [manual] # prevent whitespace battle with ruff --format (Black) - repo: https://github.com/PyCQA/prospector rev: v1.10.3 hooks: @@ -201,13 +202,13 @@ repos: # - --tool=pylint # comment out if you get "pylint: astroid-error ..." - --tool=dodgy - repo: https://github.com/PyCQA/bandit - rev: 1.7.7 + rev: 1.7.8 hooks: - id: bandit args: [-c, pyproject.toml] additional_dependencies: ['bandit[toml]'] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.8.0 + rev: v1.9.0 hooks: - id: mypy - repo: https://github.com/pre-commit/pygrep-hooks @@ -228,13 +229,13 @@ repos: hooks: - id: dead - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.2 + rev: v0.3.5 hooks: # Run the formatter. - id: ruff-format - repo: https://github.com/python-poetry/poetry # see https://python-poetry.org/docs/master/pre-commit-hooks/#faq - rev: 1.7.0 + rev: 1.8.0 hooks: - id: poetry-lock - id: poetry-check @@ -287,7 +288,7 @@ repos: exclude: tests/ - repo: https://github.com/errata-ai/vale - rev: v3.1.0 + rev: v3.3.1 hooks: - id: vale exclude: LICENSE|humans\.txt|requirements.*|styles/ @@ -374,5 +375,6 @@ ci: autoupdate_commit_msg: 'chore: pre-commit.ci autoupdate' autoupdate_schedule: monthly skip: + - gitlint-ci - markdown-link-check - poetry-lock diff --git a/poetry.lock b/poetry.lock index b9d98b5..a06071d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -46,18 +46,18 @@ files = [ [[package]] name = "filelock" -version = "3.13.1" +version = "3.14.0" description = "A platform independent file lock." optional = false python-versions = ">=3.8" files = [ - {file = "filelock-3.13.1-py3-none-any.whl", hash = "sha256:57dbda9b35157b05fb3e58ee91448612eb674172fab98ee235ccb0b5bee19a1c"}, - {file = "filelock-3.13.1.tar.gz", hash = "sha256:521f5f56c50f8426f5e03ad3b281b490a87ef15bc6c526f168290f0c7148d44e"}, + {file = "filelock-3.14.0-py3-none-any.whl", hash = "sha256:43339835842f110ca7ae60f1e1c160714c5a6afd15a2873419ab185334975c0f"}, + {file = "filelock-3.14.0.tar.gz", hash = "sha256:6ea72da3be9b8c82afd3edcf99f2fffbb5076335a5ae4d03248bb5b6c3eae78a"}, ] [package.extras] -docs = ["furo (>=2023.9.10)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.24)"] -testing = ["covdefaults (>=2.3)", "coverage (>=7.3.2)", "diff-cover (>=8)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)", "pytest-timeout (>=2.2)"] +docs = ["furo (>=2023.9.10)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.25.2)"] +testing = ["covdefaults (>=2.3)", "coverage (>=7.3.2)", "diff-cover (>=8.0.1)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)", "pytest-timeout (>=2.2)"] typing = ["typing-extensions (>=4.8)"] [[package]] @@ -73,28 +73,29 @@ files = [ [[package]] name = "platformdirs" -version = "4.2.0" -description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +version = "4.2.1" +description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." optional = false python-versions = ">=3.8" files = [ - {file = "platformdirs-4.2.0-py3-none-any.whl", hash = "sha256:0614df2a2f37e1a662acbd8e2b25b92ccf8632929bc6d43467e17fe89c75e068"}, - {file = "platformdirs-4.2.0.tar.gz", hash = "sha256:ef0cc731df711022c174543cb70a9b5bd22e5a9337c8624ef2c2ceb8ddad8768"}, + {file = "platformdirs-4.2.1-py3-none-any.whl", hash = "sha256:17d5a1161b3fd67b390023cb2d3b026bbd40abde6fdb052dfbd3a29c3ba22ee1"}, + {file = "platformdirs-4.2.1.tar.gz", hash = "sha256:031cd18d4ec63ec53e82dceaac0417d218a6863f7745dfcc9efe7793b7039bdf"}, ] [package.extras] docs = ["furo (>=2023.9.10)", "proselint (>=0.13)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.25.2)"] test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)"] +type = ["mypy (>=1.8)"] [[package]] name = "pluggy" -version = "1.4.0" +version = "1.5.0" description = "plugin and hook calling mechanisms for python" optional = false python-versions = ">=3.8" files = [ - {file = "pluggy-1.4.0-py3-none-any.whl", hash = "sha256:7db9f7b503d67d1c5b95f59773ebb58a8c1c288129a88665838012cfb07b8981"}, - {file = "pluggy-1.4.0.tar.gz", hash = "sha256:8c85c2876142a764e5b7548e7d9a0e0ddb46f5185161049a79b7e974454223be"}, + {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, + {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, ] [package.extras] @@ -298,13 +299,13 @@ testing = ["build[virtualenv] (>=1.0.3)", "covdefaults (>=2.3)", "detect-test-po [[package]] name = "virtualenv" -version = "20.25.1" +version = "20.26.1" description = "Virtual Python Environment builder" optional = false python-versions = ">=3.7" files = [ - {file = "virtualenv-20.25.1-py3-none-any.whl", hash = "sha256:961c026ac520bac5f69acb8ea063e8a4f071bcc9457b9c1f28f6b085c511583a"}, - {file = "virtualenv-20.25.1.tar.gz", hash = "sha256:e08e13ecdca7a0bd53798f356d5831434afa5b07b93f0abdf0797b7a06ffe197"}, + {file = "virtualenv-20.26.1-py3-none-any.whl", hash = "sha256:7aa9982a728ae5892558bff6a2839c00b9ed145523ece2274fad6f414690ae75"}, + {file = "virtualenv-20.26.1.tar.gz", hash = "sha256:604bfdceaeece392802e6ae48e69cec49168b9c5f4a44e483963f9242eb0e78b"}, ] [package.dependencies] @@ -313,7 +314,7 @@ filelock = ">=3.12.2,<4" platformdirs = ">=3.9.1,<5" [package.extras] -docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"] +docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2,!=7.3)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"] test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8)", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10)"] [extras] diff --git a/reliabot/__init__.py b/reliabot/__init__.py index 182b63c..7e78526 100644 --- a/reliabot/__init__.py +++ b/reliabot/__init__.py @@ -1,2 +1,3 @@ """Maintain Dependabot configuration.""" + from __future__ import annotations diff --git a/reliabot/reliabot.py b/reliabot/reliabot.py index 17467c3..7590e28 100755 --- a/reliabot/reliabot.py +++ b/reliabot/reliabot.py @@ -18,6 +18,7 @@ >>> if os.path.islink("testdir") and os.readlink("testdir") == "../testdir/": ... _ = isdir(".git") or os.mkdir(".git") """ + from __future__ import annotations import os diff --git a/tidy-md-refs.py b/tidy-md-refs.py index c974057..e5bd9cd 100755 --- a/tidy-md-refs.py +++ b/tidy-md-refs.py @@ -31,6 +31,7 @@ https://web.archive.org/web/20120920012828/http://www.leancrew.com/all-this/ WayBack machine archive link. """ + from __future__ import annotations import argparse