-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
70 lines (60 loc) · 1.53 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[tool.poetry]
name = "ld51-server"
version = "0.1.0"
description = ""
authors = ["Simon Berger <[email protected]>"]
readme = "README.md"
packages = [{ include = "ld51_server" }]
[tool.poetry.dependencies]
fastapi = "^0.95.1"
python = "^3.10"
websockets = "^11.0.2"
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
httpx = "^0.24.0"
isort = "^5.10.1"
pylint = "^2.15.3"
pylint-pydantic = "^0.1.4"
pyright = "^1.1.274"
pytest = "^7.1.3"
pytest-cov = "^4.0.0"
pytest-timeout = "^2.1.0"
requests = "^2.28.1"
uvicorn = "^0.22.0"
[tool.poe.tasks]
run = "uvicorn ld51_server:app --reload"
test = "pytest"
test-cov = "pytest --cov=ld51_server"
lint = "pylint ld51_server/"
type-check = "pyright"
_sort-imports = "isort ."
_sort-imports-check = "isort --diff --check ."
_format = "black ."
_format-check = "black --check --diff ."
format = ["_sort-imports", "_format"]
format-check = ["_sort-imports-check", "_format-check"]
commit-flow = ["format", "type-check", "test", "lint"]
[tool.isort]
profile = "black"
[tool.pylint.main]
load-plugins = ["pylint_pydantic"]
extension-pkg-whitelis = ["pydantic"]
[tool.pylint.basic]
good-names = ["ws", "x", "y"]
[tool.pylint.miscellaneous]
notes = ["FIXME"]
[tool.pylint.message_control]
disable = [
"line-too-long",
"missing-docstring",
"too-few-public-methods",
"too-many-branches",
"too-many-instance-attributes",
"too-many-locals",
"too-many-return-statements",
]
[tool.pyright]
strict = ["ld51_server/"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"