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

yaleman / thin-controller / 18209507711

03 Oct 2025 12:43AM UTC coverage: 65.672% (+1.3%) from 64.341%
18209507711

Pull #214

github

web-flow
Merge b6c86b0de into 373fcb5ab
Pull Request #214: Containerisation and Fargate deployment

6 of 7 new or added lines in 2 files covered. (85.71%)

88 of 134 relevant lines covered (65.67%)

0.66 hits per line

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

66.67
/thin_controller/__main__.py
1
"""thin-controller main"""
2

3
import click
1✔
4
import uvicorn
1✔
5

6

7
@click.command()
1✔
8
@click.option("--reload", is_flag=True, help="Enable auto-reload")
1✔
9
@click.option("--host", default="localhost", help="Host to run the server on")
1✔
10
@click.option("--port", default=8000, help="Port to run the server on")
1✔
11
def cli(reload: bool = False, host: str = "localhost", port: int = 8000) -> None:
1✔
12
    """Run the Thin Controller server"""
13

14
    if reload:
×
15
        uvicorn.run(
×
16
            "thin_controller:app",
17
            host=host,
18
            port=port,
19
            reload=True,
20
            reload_dirs=["thin_controller"],  # because watching too much gets hungry
21
        )
22
    else:
NEW
23
        uvicorn.run("thin_controller:app", host=host, port=port)
×
24

25

26
if __name__ == "__main__":
1✔
27
    cli()
×
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

© 2026 Coveralls, Inc