From 4ee2e8614bf3b71c7432975705c836cf35ce4f5a Mon Sep 17 00:00:00 2001 From: Harald Husum Date: Tue, 7 Jun 2022 11:29:42 +0200 Subject: [PATCH] Add more known 3rd party modules Also, let `attrs` provide `attrs` in addition to `attr`. See: https://www.attrs.org/en/stable/changelog.html#id5 --- src/flake8_requirements/checker.py | 2 +- src/flake8_requirements/modules.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/flake8_requirements/checker.py b/src/flake8_requirements/checker.py index 3c40ece..dd18b57 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.5.3" +__version__ = "1.5.4" __license__ = "MIT" LOG = getLogger('flake8.plugin.requirements') diff --git a/src/flake8_requirements/modules.py b/src/flake8_requirements/modules.py index 182b7a4..523e91a 100644 --- a/src/flake8_requirements/modules.py +++ b/src/flake8_requirements/modules.py @@ -511,9 +511,11 @@ # but it depends on allure-python-commons which provides it. User # will most likely specify allure-pytest as a dependency, though. "allure-pytest": ["allure"], - "attrs": ["attr"], + "attrs": ["attr", "attrs"], "awesome_slugify": ["slugify"], + "azure-storage-blob": ["azure"], "beautifulsoup4": ["bs4"], + "cattrs": ["cattr"], "cx_oracle": ["cx_Oracle"], "databricks-connect": ["pyspark"], "django-ajax-selects": ["ajax_select"], @@ -543,12 +545,15 @@ "pyjwt": ["jwt"], "pymongo": ["bson", "gridfs", "pymongo"], "pyopenssl": ["OpenSSL"], + "pytest": ["pytest", "_pytest"], "python-dateutil": ["dateutil"], "pyyaml": ["yaml"], "scikit-learn": ["sklearn"], + "scikit-fda": ["skfda"], "setuptools": ["pkg_resources", "setuptools"], "sorl-thumbnail": ["sorl"], "splunk_sdk": ["splunklib"], "tensorboardx": ["tensorboardX"], + "umap-learn": ["umap"], "xlwt_future": ["xlwt"], }