Skip to content

Commit 1e22999

Browse files
committed
Use taskipy
1 parent d05ca2f commit 1e22999

4 files changed

Lines changed: 79 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ file checks (and more) on
77
## How to run
88

99
```shell
10-
make run
10+
poetry install
11+
poetry run task server
1112
```

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
app = Starlette(debug=False)
88
app.add_route("/graphql", GraphQL(schema))
99

10+
1011
if __name__ == "__main__":
1112
uvicorn.run(app, host="0.0.0.0", port=5000, access_log=False)

poetry.lock

Lines changed: 72 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ httpx = "^0.16.1"
1616
flake8 = "^3.8.4"
1717
black = {version = "^20.8b1", allow-prereleases = true}
1818
isort = "^5.7.0"
19+
taskipy = "^1.6.0"
1920

2021
[build-system]
2122
requires = ["poetry-core>=1.0.0"]
@@ -28,3 +29,6 @@ ensure_newline_before_comments = true
2829
force_grid_wrap = 0
2930
line_length = 88
3031
multi_line_output = 3
32+
33+
[tool.taskipy.tasks]
34+
server = "GITHUB_TOKEN=demo poetry run python main.py --reload"

0 commit comments

Comments
 (0)