• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

WenjieDu / PyPOTS / 4676447045

pending completion
4676447045

Pull #48

github

GitHub
Merge 30b47daba into ce199d307
Pull Request #48: Add the lint-code workflow and pypots-cli to help development

79 of 79 new or added lines in 7 files covered. (100.0%)

2854 of 3389 relevant lines covered (84.21%)

0.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.0
/pypots/utils/commands/pypots_cli.py
1
"""
1✔
2
PyPOTS CLI (Command Line Interface) tool
3
"""
4

5
# Created by Wenjie Du <wenjay.du@gmail.com>
6
# License: GLP-v3
7

8

9
from argparse import ArgumentParser
1✔
10

11
from pypots.utils.commands.dev import DevCommand
1✔
12

13

14
def main():
×
15
    parser = ArgumentParser(
×
16
        "PyPOTS Command-Line-Interface tool", usage="pypots-cli <command> [<args>]"
17
    )
18
    commands_parser = parser.add_subparsers(help="pypots-cli command helpers")
×
19

20
    # Register commands here
21
    DevCommand.register_subcommand(commands_parser)
×
22

23
    # parse all arguments
24
    args = parser.parse_args()
×
25

26
    if not hasattr(args, "func"):
×
27
        parser.print_help()
×
28
        exit(1)
×
29

30
    # then run
31
    service = args.func(args)
×
32
    service.run()
×
33

34

35
if __name__ == "__main__":
×
36
    main()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc