From 40c31d55c187c0a3c5f4760e37ada8724b603dad Mon Sep 17 00:00:00 2001 From: Andrei Sorokin Date: Wed, 22 May 2024 06:07:56 +0200 Subject: [PATCH] upgraded volnurable requests --- .pre-commit-config.yaml | 4 ++-- requirements.dev.txt | 26 +++++++++++++------------- requirements.txt | 8 ++++---- src/amazon_dash.py | 6 +++--- src/google_api.py | 4 ++-- src/models.py | 2 +- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 755b6fe..d21c88f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ exclude: | repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.4.3 + rev: v0.4.4 hooks: # Run the linter. - id: ruff @@ -16,7 +16,7 @@ repos: # Run the formatter. - id: ruff-format - repo: https://github.com/RobertCraigie/pyright-python - rev: v1.1.361 + rev: v1.1.363 hooks: - id: pyright diff --git a/requirements.dev.txt b/requirements.dev.txt index b7a725d..c69bcd8 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,14 +1,14 @@ # -# This file is autogenerated by pip-compile with Python 3.12 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile requirements.dev.in # -annotated-types==0.6.0 +annotated-types==0.7.0 # via # -r requirements.txt # pydantic -astroid==3.1.0 +astroid==3.2.2 # via pylint bracex==2.4 # via wcmatch @@ -43,7 +43,7 @@ distlib==0.3.8 # via virtualenv filelock==3.14.0 # via virtualenv -freezegun==1.5.0 +freezegun==1.5.1 # via -r requirements.dev.in ghp-import==2.1.0 # via mkdocs @@ -51,7 +51,7 @@ google-api-core==2.19.0 # via # -r requirements.txt # google-api-python-client -google-api-python-client==2.127.0 +google-api-python-client==2.129.0 # via # -r requirements.txt # google-api-python-client-stubs @@ -134,14 +134,14 @@ pathspec==0.12.1 # via mkdocs pip-tools==7.4.1 # via -r requirements.dev.in -platformdirs==4.2.1 +platformdirs==4.2.2 # via # mkdocs-get-deps # pylint # virtualenv pluggy==1.5.0 # via pytest -pre-commit==3.7.0 +pre-commit==3.7.1 # via -r requirements.dev.in proto-plus==1.23.0 # via @@ -176,7 +176,7 @@ pydantic-core==2.18.2 # pydantic pygments==2.18.0 # via rich -pylint==3.1.0 +pylint==3.2.2 # via -r requirements.dev.in pyparsing==3.1.2 # via @@ -186,7 +186,7 @@ pyproject-hooks==1.1.0 # via # build # pip-tools -pytest==8.2.0 +pytest==8.2.1 # via # -r requirements.dev.in # pytest-cov @@ -208,7 +208,7 @@ pyyaml==6.0.1 # pyyaml-env-tag pyyaml-env-tag==0.1 # via mkdocs -requests==2.31.0 +requests==2.32.2 # via # -r requirements.txt # google-api-core @@ -231,7 +231,7 @@ six==1.16.0 # -r requirements.txt # oauth2client # python-dateutil -tomlkit==0.12.4 +tomlkit==0.12.5 # via pylint typer==0.12.3 # via lazydocs @@ -253,11 +253,11 @@ urllib3==2.2.1 # via # -r requirements.txt # requests -virtualenv==20.26.1 +virtualenv==20.26.2 # via pre-commit watchdog==4.0.0 # via mkdocs -wcmatch==8.5.1 +wcmatch==8.5.2 # via mkdocs-awesome-pages-plugin wheel==0.43.0 # via pip-tools diff --git a/requirements.txt b/requirements.txt index a757a72..ec3e78a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,10 @@ # -# This file is autogenerated by pip-compile with Python 3.12 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile requirements.in # -annotated-types==0.6.0 +annotated-types==0.7.0 # via pydantic cachetools==5.3.3 # via google-auth @@ -16,7 +16,7 @@ charset-normalizer==3.3.2 # via requests google-api-core==2.19.0 # via google-api-python-client -google-api-python-client==2.127.0 +google-api-python-client==2.129.0 # via -r requirements.in google-auth==2.29.0 # via @@ -63,7 +63,7 @@ pyparsing==3.1.2 # via httplib2 python-dateutil==2.9.0.post0 # via -r requirements.in -requests==2.31.0 +requests==2.32.2 # via # -r requirements.in # google-api-core diff --git a/src/amazon_dash.py b/src/amazon_dash.py index f2116bd..ecce20c 100644 --- a/src/amazon_dash.py +++ b/src/amazon_dash.py @@ -9,9 +9,9 @@ from datetime import datetime, timedelta from typing import Any, Dict, Optional, Set -from scapy.all import Packet, sniff # pyright: ignore [reportMissingTypeStubs] -from scapy.layers.dhcp import DHCP # pyright: ignore [reportMissingTypeStubs] -from scapy.layers.l2 import ARP # pyright: ignore [reportMissingTypeStubs] +from scapy.all import Packet, sniff # pyright: ignore [reportMissingImports] +from scapy.layers.dhcp import DHCP # pyright: ignore [reportMissingImports] +from scapy.layers.l2 import ARP # pyright: ignore [reportMissingImports] import models from action import Action diff --git a/src/google_api.py b/src/google_api.py index f121299..abe093e 100644 --- a/src/google_api.py +++ b/src/google_api.py @@ -5,8 +5,8 @@ from functools import cached_property import httplib2 -from googleapiclient import discovery -from oauth2client.service_account import ServiceAccountCredentials # pyright: ignore [reportMissingTypeStubs] +from googleapiclient import discovery # pyright: ignore [reportMissingImports] +from oauth2client.service_account import ServiceAccountCredentials # pyright: ignore [reportMissingImports] import models diff --git a/src/models.py b/src/models.py index d3e348a..fbccd6c 100644 --- a/src/models.py +++ b/src/models.py @@ -1,6 +1,6 @@ from typing import Any, Dict, List, Literal, Optional, Union -from pydantic import BaseModel, RootModel, TypeAdapter, constr, model_validator +from pydantic import BaseModel, RootModel, TypeAdapter, constr, model_validator # pyright: ignore [reportMissingImports] BOUNCE_DELAY = 5