From 1ba3bff5bcb6b5f5f2f2a4ae0749aaea5f472c17 Mon Sep 17 00:00:00 2001 From: monosans Date: Tue, 11 Jul 2023 07:54:08 +0000 Subject: [PATCH] Update .pre-commit-config.yaml (#69) * Update .pre-commit-config.yaml * Reformat --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- proxy_scraper_checker/validators.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c05aa1..a21be64 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: hooks: - id: prettier - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.7.0 hooks: - id: black - repo: https://github.com/charliermarsh/ruff-pre-commit diff --git a/proxy_scraper_checker/validators.py b/proxy_scraper_checker/validators.py index bb8de7a..327b080 100644 --- a/proxy_scraper_checker/validators.py +++ b/proxy_scraper_checker/validators.py @@ -34,11 +34,9 @@ def max_connections(value: int) -> Optional[int]: if not max_supported or value <= max_supported: return value logger.warning( - ( - "MaxConnections value is too high. " - "Your OS supports a maximum of %d. " - "The config value will be ignored and %d will be used." - ), + "MaxConnections value is too high. " + "Your OS supports a maximum of %d. " + "The config value will be ignored and %d will be used.", max_supported, max_supported, )