Skip to content

Commit

Permalink
Created pyproject extra for Flake8-pyproject (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza authored Feb 20, 2024
1 parent f36956e commit 894d7f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ Real life example::
max-line-length = 100
known-modules = my-lib:[mylib.drm,mylib.encryption]

If you use `flake8-pyproject <https://pypi.org/project/Flake8-pyproject/>`_, you can also configure
the known modules using a nicer syntax::
If you use `Flake8-pyproject <https://pypi.org/project/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
...
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down
2 changes: 1 addition & 1 deletion src/flake8_requirements/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 894d7f2

Please sign in to comment.