From 5ae05245e6758c5da0eb16f29af21a32073ac332 Mon Sep 17 00:00:00 2001 From: Dick Marinus Date: Mon, 18 Mar 2024 11:14:07 +0100 Subject: [PATCH] fix pylint W0621: Redefining name 'main' from outer scope (line 68) (redefined-outer-name) --- setup.py | 2 +- vdirsyncer/cli/__init__.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/setup.py b/setup.py index d264aa2..85b11c0 100644 --- a/setup.py +++ b/setup.py @@ -67,7 +67,7 @@ setup( include_package_data=True, cmdclass={"minimal_requirements": PrintRequirements}, use_scm_version={"write_to": "vdirsyncer/version.py"}, - entry_points={"console_scripts": ["vdirsyncer = vdirsyncer.cli:main"]}, + entry_points={"console_scripts": ["vdirsyncer = vdirsyncer.cli:app"]}, classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", diff --git a/vdirsyncer/cli/__init__.py b/vdirsyncer/cli/__init__.py index 6b993d0..e84b934 100644 --- a/vdirsyncer/cli/__init__.py +++ b/vdirsyncer/cli/__init__.py @@ -65,9 +65,6 @@ def app(ctx, config: str): ctx.config = load_config(config) -main = app - - def collections_arg_callback(ctx, param, value): """ Expand the various CLI shortforms ("pair, pair/collection") to an iterable