From f4c399a173115d776746e003d1d27293ea2bfb8d Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 9 Sep 2021 12:07:38 +0300 Subject: [PATCH] Pre-commita autoupdate. Also, with the newer Pylint version, address some new issues. --- .pre-commit-config.yaml | 14 +++++++------- src/utils.py | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a014988..842aa0c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.0.1 hooks: - id: check-merge-conflict - id: trailing-whitespace @@ -12,24 +12,24 @@ repos: - id: detect-secrets - repo: https://github.com/adrienverge/yamllint - rev: v1.26.1 + rev: v1.26.3 hooks: - id: yamllint - repo: https://github.com/executablebooks/mdformat.git - rev: 0.7.4 + rev: 0.7.9 hooks: - id: mdformat - repo: https://github.com/amperser/proselint/ - rev: 0.10.2 + rev: 0.12.0 hooks: - id: proselint types: [plain-text] exclude: LICENSE - repo: https://github.com/ambv/black - rev: 20.8b1 + rev: 21.8b0 hooks: - id: black args: @@ -37,7 +37,7 @@ repos: --line-length=79 - repo: https://github.com/PyCQA/prospector - rev: 1.3.1 + rev: 1.5.1b0 hooks: - id: prospector args: @@ -64,7 +64,7 @@ repos: - pyroma - repo: https://gitlab.com/pycqa/flake8.git - rev: 3.9.1 + rev: 3.9.2 hooks: - id: flake8 args: diff --git a/src/utils.py b/src/utils.py index 87fc9af..c764dab 100644 --- a/src/utils.py +++ b/src/utils.py @@ -1,6 +1,6 @@ import os import boto3 # pylint: disable=import-error -import requests # pylint: disable=import-error +import requests # pylint: disable=import-error,useless-suppression class Check: @@ -57,7 +57,7 @@ class CheckURL(Check): return False, str(e) -def website_handler(urls): # pylint: disable=unused-argument +def website_handler(urls): """Return a Lambda event handler for checking web sites.""" def _handler(event, context): # pylint: disable=unused-argument -- GitLab