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

WenjieDu / PyPOTS / 10846141584

13 Sep 2024 08:55AM UTC coverage: 83.346% (+0.07%) from 83.273%
10846141584

push

github

web-flow
Merge pull request #512 from WenjieDu/dev

Apply line-length=120 to refactor code, update dependencies and pre-commit config

446 of 623 new or added lines in 160 files covered. (71.59%)

81 existing lines in 39 files now uncovered.

11195 of 13432 relevant lines covered (83.35%)

5.0 hits per line

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

0.0
/pypots/cli/pypots_cli.py
1
"""
2
PyPOTS CLI (Command Line Interface) tool
3
"""
4

5
# Created by Wenjie Du <wenjay.du@gmail.com>
6
# License: BSD-3-Clause
7

8
from argparse import ArgumentParser
×
9

10
from .dev import DevCommand
×
11
from .doc import DocCommand
×
12
from .env import EnvCommand
×
13
from .tuning import TuningCommand
×
14

15

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

20
    # Register commands here
21
    DevCommand.register_subcommand(commands_parser)
×
22
    DocCommand.register_subcommand(commands_parser)
×
23
    EnvCommand.register_subcommand(commands_parser)
×
24
    TuningCommand.register_subcommand(commands_parser)
×
25

26
    # parse all arguments
27
    args = parser.parse_args()
×
28

29
    if not hasattr(args, "func"):
×
30
        parser.print_help()
×
31
        exit(1)
×
32

33
    # then run
34
    service = args.func(args)
×
35
    service.run()
×
36

37

38
if __name__ == "__main__":
×
39
    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