Skip to content

Commit 8c538d4

Browse files
committed
Lint
1 parent 6b86535 commit 8c538d4

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

dep_checker/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def check_imports(
320320
colour: Optional[bool] = None,
321321
name_mapping: Optional[Dict[str, str]] = None,
322322
namespace_packages: Optional[List[str]] = None,
323-
work_dir: PathLike = '.'
323+
work_dir: PathLike = '.',
324324
) -> int:
325325
"""
326326
Check imports for the given package, against the given requirements file.

dep_checker/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
"--work-dir",
4949
type=click.STRING,
5050
default='.',
51-
help="The directory to find the source of the package in. Useful with the src/ layout."
51+
help="The directory to find the source of the package in. Useful with the src/ layout.",
5252
)
5353
@click.option(
5454
"-a",
5555
"--allowed-unused",
5656
type=click.STRING,
5757
multiple=True,
58-
help="Requirements which are allowed to be unused in the source code."
58+
help="Requirements which are allowed to be unused in the source code.",
5959
)
6060
@click.option(
6161
"--req-file",

dep_checker/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
class Visitor(ast.NodeVisitor):
4444
"""
4545
:class:`ast.NodeVisitor` to identify imports in a module.
46+
47+
:param pkg_name:
48+
:param namespace_packages:
4649
"""
4750

4851
def __init__(self, pkg_name: str, namespace_packages: Optional[Dict[str, List[str]]] = None):

0 commit comments

Comments
 (0)