diff --git a/README.rst b/README.rst index 797ec73..61e21a1 100644 --- a/README.rst +++ b/README.rst @@ -64,8 +64,9 @@ Real life example:: max-line-length = 100 known-modules = my-lib:[mylib.drm,mylib.encryption] -If you use `flake8-pyproject `_, you can also configure -the known modules using a nicer syntax:: +If you use `Flake8-pyproject `_ +(can include for installation using ``flake8-requirements[pyproject]``), +you can also configure the known modules using a nicer syntax in ``pyproject.toml``:: $ cat pyproject.toml ... diff --git a/setup.py b/setup.py index 0ab5f33..5c33bab 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,7 @@ def get_abs_path(pathname): "setuptools >= 10.0.0", "tomli>=1.2.1; python_version < '3.11'", ], + extras_require={"pyproject": ["Flake8-pyproject"]}, setup_requires=["pytest-runner"], tests_require=["mock", "pytest"], entry_points={ diff --git a/src/flake8_requirements/checker.py b/src/flake8_requirements/checker.py index 77b83d7..4183204 100644 --- a/src/flake8_requirements/checker.py +++ b/src/flake8_requirements/checker.py @@ -20,7 +20,7 @@ from .modules import STDLIB_PY3 # NOTE: Changing this number will alter package version as well. -__version__ = "2.0.2" +__version__ = "2.1.0" __license__ = "MIT" LOG = getLogger('flake8.plugin.requirements')