Skip to content

Commit 5ae0524

Browse files
meeuwWhyNotHugo
authored andcommitted
fix pylint W0621: Redefining name 'main' from outer scope (line 68) (redefined-outer-name)
1 parent 055ed12 commit 5ae0524

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def run(self):
6767
include_package_data=True,
6868
cmdclass={"minimal_requirements": PrintRequirements},
6969
use_scm_version={"write_to": "vdirsyncer/version.py"},
70-
entry_points={"console_scripts": ["vdirsyncer = vdirsyncer.cli:main"]},
70+
entry_points={"console_scripts": ["vdirsyncer = vdirsyncer.cli:app"]},
7171
classifiers=[
7272
"Development Status :: 4 - Beta",
7373
"Environment :: Console",

vdirsyncer/cli/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ def app(ctx, config: str):
6565
ctx.config = load_config(config)
6666

6767

68-
main = app
69-
70-
7168
def collections_arg_callback(ctx, param, value):
7269
"""
7370
Expand the various CLI shortforms ("pair, pair/collection") to an iterable

0 commit comments

Comments
 (0)