From 1af49e9ddbcaed5b95efa551cee5f4ce5a463e6c Mon Sep 17 00:00:00 2001 From: Vladislav Denisov Date: Wed, 23 Aug 2023 22:24:44 +0300 Subject: [PATCH] added `requirements-txt-fixer` to pre-commit (#6388) --- .pre-commit-config.yaml | 5 +- requirements.txt | 116 ++++++++++++++++++++-------------------- requirements_all_ds.txt | 82 ++++++++++++++-------------- requirements_dev.txt | 12 ++--- 4 files changed, 109 insertions(+), 106 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cbc306ba5..66d15efd2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,4 +13,7 @@ repos: hooks: - id: flake8 exclude: "migration/.*|.git|viz-lib|node_modules|migrations|bin/upgrade" - + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: requirements-txt-fixer diff --git a/requirements.txt b/requirements.txt index d58dfb6fa..2dd6fb0fe 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,64 +1,64 @@ -Flask==2.3.2 -Jinja2==3.1.2 -itsdangerous==2.1.2 -click==8.1.3 -MarkupSafe==2.1.1 -pyOpenSSL==23.2.0 -httplib2==0.19.0 -wtforms==2.2.1 -Flask-RESTful==0.3.10 -Flask-Login==0.6.0 -Flask-SQLAlchemy==2.5.1 -Flask-Migrate==2.5.2 -flask-mail==0.9.1 -flask-talisman==0.7.0 -Flask-Limiter==3.3.1 -Flask-WTF==1.1.1 -passlib==1.7.3 +advocate==1.0.0 aniso8601==8.0.0 -blinker==1.6.2 -psycopg2-binary==2.9.6 -python-dateutil==2.8.0 -pytz>=2019.3 -PyYAML==6.0.1 -redis==4.4.4 -requests==2.31.0 -SQLAlchemy==1.3.24 -SQLAlchemy-Searchable==1.2.0 -SQLAlchemy-Utils==0.34.2 -sqlparse==0.4.4 -statsd==3.3.0 -greenlet==1.1.3 -gunicorn==20.0.4 -rq==1.5.0 -rq-scheduler==0.10.0 -jsonschema==3.1.1 -RestrictedPython==6.1 -pysaml2==7.3.1 -python-dotenv==0.19.2 -funcy==1.13 -sentry-sdk==1.28.1 -semver==2.8.1 -xlsxwriter==1.2.2 -pystache==0.6.0 -parsedatetime==2.4 -PyJWT==2.4.0 -cryptography==41.0.3 -simplejson==3.16.0 -ua-parser==0.18.0 -user-agents==2.0 -maxminddb-geolite2==2018.703 -pypd==1.1.0 -disposable-email-domains>=0.0.52 -gevent==22.10.1 -sshtunnel==0.1.5 -supervisor==4.1.0 -supervisor_checks==0.8.1 -werkzeug==2.3.6 # Uncomment the requirement for ldap3 if using ldap. # It is not included by default because of the GPL license conflict. # ldap3==2.2.4 Authlib==0.15.5 -advocate==1.0.0 -urllib3==1.26.16 +blinker==1.6.2 +click==8.1.3 +cryptography==41.0.3 +disposable-email-domains>=0.0.52 +Flask==2.3.2 +Flask-Limiter==3.3.1 +Flask-Login==0.6.0 +flask-mail==0.9.1 +Flask-Migrate==2.5.2 +Flask-RESTful==0.3.10 +Flask-SQLAlchemy==2.5.1 +flask-talisman==0.7.0 +Flask-WTF==1.1.1 +funcy==1.13 +gevent==22.10.1 +greenlet==1.1.3 +gunicorn==20.0.4 +httplib2==0.19.0 importlib-resources==5.13.0 +itsdangerous==2.1.2 +Jinja2==3.1.2 +jsonschema==3.1.1 +MarkupSafe==2.1.1 +maxminddb-geolite2==2018.703 +parsedatetime==2.4 +passlib==1.7.3 +psycopg2-binary==2.9.6 +PyJWT==2.4.0 +pyOpenSSL==23.2.0 +pypd==1.1.0 +pysaml2==7.3.1 +pystache==0.6.0 +python-dateutil==2.8.0 +python-dotenv==0.19.2 +pytz>=2019.3 +PyYAML==6.0.1 +redis==4.4.4 +requests==2.31.0 +RestrictedPython==6.1 +rq==1.5.0 +rq-scheduler==0.10.0 +semver==2.8.1 +sentry-sdk==1.28.1 +simplejson==3.16.0 +SQLAlchemy==1.3.24 +SQLAlchemy-Searchable==1.2.0 +SQLAlchemy-Utils==0.34.2 +sqlparse==0.4.4 +sshtunnel==0.1.5 +statsd==3.3.0 +supervisor==4.1.0 +supervisor_checks==0.8.1 +ua-parser==0.18.0 +urllib3==1.26.16 +user-agents==2.0 +werkzeug==2.3.6 +wtforms==2.2.1 +xlsxwriter==1.2.2 diff --git a/requirements_all_ds.txt b/requirements_all_ds.txt index f43ebcdf0..a77573407 100644 --- a/requirements_all_ds.txt +++ b/requirements_all_ds.txt @@ -1,51 +1,51 @@ +atsd_client==3.0.5 +azure-kusto-data==0.0.35 +boto3==1.28.8 +botocore==1.31.8 +cassandra-driver==3.21.0 +# certifi is needed to support MongoDB and SSL: +certifi>=2019.9.11 +cmem-cmempy==21.2.3 +databend-sqlalchemy==0.2.4 google-api-python-client==1.7.11 -protobuf==3.18.3 gspread==3.1.0 impyla==0.16.0 influxdb==5.2.3 -mysqlclient==2.1.1 -oauth2client==4.1.3 -pyhive==0.6.1 -pymongo[tls,srv]==4.3.3 -vertica-python==1.1.1 -td-client==1.0.0 -pymssql==2.1.5 -boto3==1.28.8 -botocore==1.31.8 -sasl>=0.1.3 -thrift>=0.8.0 -thrift_sasl>=0.1.0 -cassandra-driver==3.21.0 memsql==3.2.0 -atsd_client==3.0.5 -simple_salesforce==0.74.3 -PyAthena>=1.5.0,<=1.11.5 -qds-sdk>=1.9.6 -# ibm-db>=2.0.9 -pydruid==0.5.7 -requests_aws_sign==0.1.5 -snowflake-connector-python==3.1.0 -phoenixdb==0.7 -# certifi is needed to support MongoDB and SSL: -certifi>=2019.9.11 -pydgraph==2.0.2 -azure-kusto-data==0.0.35 -pyexasol==0.12.0 -python-rapidjson==0.8.0 -pyodbc==4.0.28 -trino~=0.305 -cmem-cmempy==21.2.3 -xlrd==2.0.1 -openpyxl==3.0.7 -databend-sqlalchemy==0.2.4 -pandas==1.3.4 -nzpy>=1.15 +mysqlclient==2.1.1 nzalchemy -python-arango==6.1.0 -pinotdb>=0.4.5 -pygridgain==1.4.0 -pyignite==0.6.1 +nzpy>=1.15 +oauth2client==4.1.3 +openpyxl==3.0.7 # python-oracledb supports Oracle 12c and above without needing the Oracle # client libraries installed. To support Oracle 9.x and above as well, # then the Oracle client libraries will need installing first. oracledb==1.4.0 +pandas==1.3.4 +phoenixdb==0.7 +pinotdb>=0.4.5 +protobuf==3.18.3 +PyAthena>=1.5.0,<=1.11.5 +pydgraph==2.0.2 +# ibm-db>=2.0.9 +pydruid==0.5.7 +pyexasol==0.12.0 +pygridgain==1.4.0 +pyhive==0.6.1 +pyignite==0.6.1 +pymongo[tls,srv]==4.3.3 +pymssql==2.1.5 +pyodbc==4.0.28 +python-arango==6.1.0 +python-rapidjson==0.8.0 +qds-sdk>=1.9.6 +requests_aws_sign==0.1.5 +sasl>=0.1.3 +simple_salesforce==0.74.3 +snowflake-connector-python==3.1.0 +td-client==1.0.0 +thrift>=0.8.0 +thrift_sasl>=0.1.0 +trino~=0.305 +vertica-python==1.1.1 +xlrd==2.0.1 diff --git a/requirements_dev.txt b/requirements_dev.txt index 3a78a85e1..d768f8c21 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,10 +1,10 @@ +coverage==7.2.7 +freezegun==1.2.1 jwcrypto==1.5.0 +mock==5.0.2 +pre-commit==3.3.3 +ptpython==3.0.23 +ptvsd==4.3.2 pytest==7.4.0 pytest-cov==4.1.0 -coverage==7.2.7 -mock==5.0.2 -ptvsd==4.3.2 -freezegun==1.2.1 watchdog==3.0.0 -ptpython==3.0.23 -pre-commit==3.3.3