Skip to content

Commit

Permalink
Use argparse API for flake8 >= 3.8.0
Browse files Browse the repository at this point in the history
Fixes arkq#60
  • Loading branch information
arkq committed Sep 16, 2022
1 parent 57511d9 commit 7888e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flake8_requirements/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .modules import STDLIB_PY3

# NOTE: Changing this number will alter package version as well.
__version__ = "1.7.0"
__version__ = "1.7.1"
__license__ = "MIT"

LOG = getLogger('flake8.plugin.requirements')
Expand Down Expand Up @@ -353,7 +353,7 @@ def add_options(cls, manager):
)
manager.add_option(
"--requirements-max-depth",
type="int",
type=int if flake8.__version__ >= '3.8.0' else 'int',
default=1,
help=(
"Max depth to resolve recursive requirements. Defaults to 1 "
Expand Down

0 comments on commit 7888e31

Please sign in to comment.