diff --git a/src/flake8_requirements/checker.py b/src/flake8_requirements/checker.py index 88c854b..f71d8e5 100644 --- a/src/flake8_requirements/checker.py +++ b/src/flake8_requirements/checker.py @@ -18,7 +18,7 @@ from .modules import STDLIB_PY3 # NOTE: Changing this number will alter package version as well. -__version__ = "1.6.0" +__version__ = "1.6.1" __license__ = "MIT" LOG = getLogger('flake8.plugin.requirements') diff --git a/src/flake8_requirements/modules.py b/src/flake8_requirements/modules.py index 523e91a..7c14130 100644 --- a/src/flake8_requirements/modules.py +++ b/src/flake8_requirements/modules.py @@ -507,22 +507,89 @@ # Mapping for known 3rd party projects, which provide more than one module # or the name of the module is different than the project name itself. KNOWN_3RD_PARTIES = { + "absl-py": ["absl"], # NOTE: The allure-pytest package does not provide allure module directly # but it depends on allure-python-commons which provides it. User # will most likely specify allure-pytest as a dependency, though. "allure-pytest": ["allure"], + "ansicolors": ["colors"], + "apache-airflow": ["airflow"], "attrs": ["attr", "attrs"], - "awesome_slugify": ["slugify"], - "azure-storage-blob": ["azure"], + "awesome-slugify": ["slugify"], + "azure-common": ["azure.common"], + "azure-core": ["azure.core"], + "azure-graphrbac": ["azure.graphrbac"], + "azure-identity": ["azure.identity"], + "azure-keyvault": ["azure.keyvault"], + "azure-keyvault-certificates": ["azure.keyvault.certificates"], + "azure-keyvault-keys": ["azure.keyvault.keys"], + "azure-keyvault-secrets": ["azure.keyvault.secrets"], + "azure-mgmt-apimanagement": ["azure.mgmt.apimanagement"], + "azure-mgmt-authorization": ["azure.mgmt.authorization"], + "azure-mgmt-automation": ["azure.mgmt.automation"], + "azure-mgmt-batch": ["azure.mgmt.batch"], + "azure-mgmt-compute": ["azure.mgmt.compute"], + "azure-mgmt-containerinstance": ["azure.mgmt.containerinstance"], + "azure-mgmt-containerregistry": ["azure.mgmt.containerregistry"], + "azure-mgmt-containerservice": ["azure.mgmt.containerservice"], + "azure-mgmt-core": ["azure.mgmt.core"], + "azure-mgmt-cosmosdb": ["azure.mgmt.cosmosdb"], + "azure-mgmt-frontdoor": ["azure.mgmt.frontdoor"], + "azure-mgmt-hybridkubernetes": ["azure.mgmt.hybridkubernetes"], + "azure-mgmt-keyvault": ["azure.mgmt.keyvault"], + "azure-mgmt-logic": ["azure.mgmt.logic"], + "azure-mgmt-managementgroups": ["azure.mgmt.managementgroups"], + "azure-mgmt-monitor": ["azure.mgmt.monitor"], + "azure-mgmt-msi": ["azure.mgmt.msi"], + "azure-mgmt-network": ["azure.mgmt.network"], + "azure-mgmt-rdbms": ["azure.mgmt.rdbms"], + "azure-mgmt-resource": ["azure.mgmt.resource"], + "azure-mgmt-security": ["azure.mgmt.security"], + "azure-mgmt-servicefabric": ["azure.mgmt.servicefabric"], + "azure-mgmt-sql": ["azure.mgmt.sql"], + "azure-mgmt-storage": ["azure.mgmt.storage"], + "azure-mgmt-subscription": ["azure.mgmt.subscription"], + "azure-mgmt-web": ["azure.mgmt.web"], + "azure-storage-blob": ["azure.storage.blob"], + "azure-storage-queue": ["azure.storage.queue"], "beautifulsoup4": ["bs4"], + "bitvector": ["BitVector"], "cattrs": ["cattr"], - "cx_oracle": ["cx_Oracle"], + "cx-oracle": ["cx_Oracle"], "databricks-connect": ["pyspark"], "django-ajax-selects": ["ajax_select"], + "django-cors-headers": ["corsheaders"], + "django-csp": ["csp"], + "django-debug-toolbar": ["debug_toolbar"], + "django-dotenv": ["dotenv"], + "django-filter": ["django_filters"], "django-haystack": ["haystack"], + "django-safedelete": ["safedelete"], + "django-simple-history": ["simple_history"], + "djangorestframework": ["rest_framework"], "enum34": ["enum"], - "factory_boy": ["factory"], - "google_api_python_client": ["apiclient", "googleapiclient"], + "factory-boy": ["factory"], + "fluent-logger": ["fluent"], + "gitpython": ["git"], + "google-api-python-client": ["apiclient", "googleapiclient"], + "google-cloud-aiplatform": ["google.cloud.aiplatform"], + "google-cloud-bigquery": ["google.cloud.bigquery"], + "google-cloud-bigtable": ["google.cloud.bigtable"], + "google-cloud-datastore": ["google.cloud.datastore"], + "google-cloud-firestore": ["google.cloud.firestore"], + "google-cloud-functions": [ + "google.cloud.functions_v1", + "google.cloud.functions", + ], + "google-cloud-iam": ["google.cloud.iam_credentials_v1"], + "google-cloud-iot": ["google.cloud.iot_v1"], + "google-cloud-logging": [ + "google.cloud.logging_v2", + "google.cloud.logging", + ], + "google-cloud-pubsub": ["google.cloud.pubsub_v1", "google.cloud.pubsub"], + "google-cloud-secret-manager": ["google.cloud.secretmanager"], + "google-cloud-storage": ["google.cloud.storage"], "grpcio": ["grpc"], "grpcio-channelz": ["grpc_channelz"], "grpcio-gcp": ["grpc_gcp"], @@ -533,27 +600,91 @@ "grpcio-testing": ["grpc_testing"], "grpcio-tools": ["grpc_tools"], "ipython": ["IPython"], - "mysql_python": ["MySQLdb"], + "jack-client": ["jack"], + "kafka-python": ["kafka"], + "lark-parser": ["lark"], + "mysql-python": ["MySQLdb"], "mysqlclient": ["_mysql", "MySQLdb"], + "opencv-python": ["cv2"], + "opensearch-py": ["opensearchpy"], + "opentelemetry-api": ["opentelemetry"], + "opentelemetry-exporter-otlp-proto-grpc": [ + "opentelemetry.exporter.otlp.proto.grpc" + ], + "opentelemetry-exporter-otlp-proto-http": [ + "opentelemetry.exporter.otlp.proto.http" + ], + "opentelemetry-instrumentation-aiohttp-client": [ + "opentelemetry.instrumentation.aiohttp_client" + ], + "opentelemetry-instrumentation-botocore": [ + "opentelemetry.instrumentation.botocore" + ], + "opentelemetry-instrumentation-django": [ + "opentelemetry.instrumentation.django" + ], + "opentelemetry-instrumentation-elasticsearch": [ + "opentelemetry.instrumentation.elasticsearch" + ], + "opentelemetry-instrumentation-grpc": [ + "opentelemetry.instrumentation.grpc" + ], + "opentelemetry-instrumentation-httpx": [ + "opentelemetry.instrumentation.httpx" + ], + "opentelemetry-instrumentation-jinja2": [ + "opentelemetry.instrumentation.jinja2" + ], + "opentelemetry-instrumentation-psycopg2": [ + "opentelemetry.instrumentation.psycopg2" + ], + "opentelemetry-instrumentation-pymongo": [ + "opentelemetry.instrumentation.pymongo" + ], + "opentelemetry-instrumentation-requests": [ + "opentelemetry.instrumentation.requests" + ], + "opentelemetry-sdk": ["opentelemetry.sdk"], + "opentelemetry-test-utils": ["opentelemetry.test"], + "paho-mqtt": ["paho"], "pillow": ["PIL"], + "pip-tools": ["piptools"], + "progressbar2": ["progressbar"], "protobuf": ["google.protobuf"], - "py_lru_cache": ["lru"], + "psycopg2-binary": ["psycopg2"], + "py-lru-cache": ["lru"], + "pycrypto": ["Crypto"], "pygithub": ["github"], "pygobject": ["gi", "pygtkcompat"], "pyhamcrest": ["hamcrest"], "pyicu": ["icu"], "pyjwt": ["jwt"], "pymongo": ["bson", "gridfs", "pymongo"], + "pymupdf": ["fitz"], "pyopenssl": ["OpenSSL"], + "pypdf2": ["PyPDF2"], + "pypi-kenlm": ["kenlm"], "pytest": ["pytest", "_pytest"], + "pytest-runner": ["ptr"], "python-dateutil": ["dateutil"], + "python-docx": ["docx"], + "python-dotenv": ["dotenv"], + "python-hcl2": ["hcl2"], + "python-jose": ["jose"], + "python-levenshtein": ["Levenshtein"], + "python-lsp-jsonrpc": ["pylsp_jsonrpc"], + "python-magic": ["magic"], + "python-pptx": ["pptx"], + "python-socketio": ["socketio"], "pyyaml": ["yaml"], - "scikit-learn": ["sklearn"], "scikit-fda": ["skfda"], + "scikit-image": ["skimage"], + "scikit-learn": ["sklearn"], "setuptools": ["pkg_resources", "setuptools"], "sorl-thumbnail": ["sorl"], - "splunk_sdk": ["splunklib"], + "splunk-sdk": ["splunklib"], + "streamlit-aggrid": ["st_aggrid"], "tensorboardx": ["tensorboardX"], "umap-learn": ["umap"], - "xlwt_future": ["xlwt"], + "xlwt-future": ["xlwt"], }