From 57696e62e32176bab843cf0be611658a1a0d564c Mon Sep 17 00:00:00 2001 From: monosans Date: Sat, 4 Nov 2023 09:29:21 +0000 Subject: [PATCH] Update .pre-commit-config.yaml (#101) * Update .pre-commit-config.yaml * Fix --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- proxy_scraper_checker/__main__.py | 2 +- proxy_scraper_checker/validators.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index af5e124f2..9ef8013c2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: hooks: - id: prettier - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.1.3 + rev: v0.1.4 hooks: - id: ruff args: diff --git a/proxy_scraper_checker/__main__.py b/proxy_scraper_checker/__main__.py index 63222588f..324f8f12b 100644 --- a/proxy_scraper_checker/__main__.py +++ b/proxy_scraper_checker/__main__.py @@ -20,7 +20,7 @@ def set_event_loop_policy() -> None: "linux", }: try: - import uvloop + import uvloop # noqa: PLC0415 except ImportError: pass else: diff --git a/proxy_scraper_checker/validators.py b/proxy_scraper_checker/validators.py index debb1178c..f05c51990 100644 --- a/proxy_scraper_checker/validators.py +++ b/proxy_scraper_checker/validators.py @@ -53,7 +53,7 @@ def _get_supported_max_connections() -> Optional[int]: ): return 512 return None - import resource + import resource # noqa: PLC0415 soft_limit, hard_limit = resource.getrlimit(resource.RLIMIT_NOFILE) logger.debug(