-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
61 lines (51 loc) · 1.33 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
[project]
name = "beaver"
description = "A bare bones self hosted private development environments with Docker and Tailscale "
version = "0.1.0"
readme = "README.md"
authors = [
{ name = "Danilo Queiroz", email = "dpenna.queiroz@gmail.com" }
]
requires-python = ">=3.11"
dependencies = [
"docker==6.1.3",
"fastapi==0.100.0",
"pydantic-yaml==1.0.0",
"pyyaml==5.3.1",
"uvicorn[standard]==0.23.0",
]
[project.optional-dependencies]
development = [
"black",
"flake8",
"mypy",
"pytest",
"pytest-asyncio",
"pytest-cov",
"taskipy",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--disable-warnings --cov=app"
testpaths = [
"test/",
]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.taskipy.tasks]
format_src = "black src/"
format_test = "black test/"
mypy_src = "mypy src/"
mypy_test = "mypy test/"
lint_src = "flake8 --max-line-length 88 src/"
lint_test = "flake8 --max-line-length 88 test/"
build_docker = "docker build --network=host --tag daniloqueiroz/beaver:latest ."
test = "pytest test/"
mypy = "task mypy_src && task mypy_test"
lint = "task lint_src && task lint_test"
format = "task format_src && task format_test"
build = "task lint && task mypy && task build_docker"
dependencies = "pip install .[development] && pip list --outdated"