-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
71 lines (63 loc) · 1.59 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
71
[project]
name = "compose-me"
version = "0.2.0"
description = "Helm's little sister for Docker Compose."
authors = [
{name = "Niklas Rosenstein", email = "[email protected]"},
]
dependencies = [
"pyyaml>=6.0.1",
"jinja2>=3.1.2",
"typer>=0.9.0",
"mypy>=1.7.1",
"black>=23.11.0",
"flake8>=6.1.0",
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
[project.scripts]
compose-me = "compose_me.__main__:app"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.dev-dependencies]
dev = [
"mypy>=1.7.0",
"flake8>=6.1.0",
"black>=23.11.0",
"isort>=5.12.0",
"pytest>=7.4.3",
"types-pyyaml>=6.0.12.12",
"mksync>=0.1.4",
"mkdocs>=1.5.3",
"mkdocs-nav-weight>=0.2.0",
]
[tool.pdm.scripts]
lint = "bash -xc 'mypy src && flake8 src --max-line-length 120 --ignore=W503,W504,E203 && black src --check && isort src --check-only'"
fmt = "bash -xc 'black src && isort src && (mksync -i README.md || true)'"
test = "pytest src test -vv"
docs = "bash -c 'cd docs && mkdocs serve'"
"docs:build" = "bash -c 'cd docs && mkdocs build'"
# Linter/Formatter configuration
# ------------------------------
[tool.mypy]
explicit_package_bases = true
mypy_path = ["src"]
exclude = ["templates"]
namespace_packages = true
pretty = true
python_version = "3.10"
show_error_codes = true
show_error_context = true
strict = true
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_ignores = true
[tool.isort]
combine_as_imports = true
line_length = 120
profile = "black"
[tool.black]
line-length = 120