-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (81 loc) · 2.6 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (81 loc) · 2.6 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[project]
name = "capp"
version = "4.0.1"
description = "Containerized application manager"
authors = [
{ name = "Cyrille Pontvieux", email = "cyrille@enialis.net" },
]
license = { text = "MIT License" }
readme = "README.md"
keywords = ["container", "docker", "docker-compose", "deployment", "scripts", "systemd", "systemd-service", "app-manager"]
# https://pypi.org/classifiers/
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Unix Shell",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
"Typing :: Typed",
]
requires-python = ">=3.9"
dependencies = [
"pyyaml",
]
[dependency-groups]
dev = [
"poethepoet",
"ruff",
"mypy",
"types-pyyaml",
]
[project.urls]
# https://github.com/pypi/warehouse/blob/main/warehouse/templates/packaging/detail.html#L20
"Repository" = "https://gitlab.com/capp_grp/capp"
"Documentation" = "https://gitlab.com/capp_grp/capp/-/blob/master/README.md"
"Bug Tracker" = "https://gitlab.com/capp_grp/capp/-/issues"
"Merge Requests" = "https://gitlab.com/capp_grp/capp/-/merge_requests"
"Changelog" = "https://gitlab.com/capp_grp/capp/-/blob/master/CHANGELOG.md"
[tool.uv]
package = false
[tool.ruff]
line-length = 160
include = ["scripts/capp", "scripts/deploy-capp", "scripts/wait-for-cpu-idle"]
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules
select = [
"E", # pycodestyle, pep8
"F", # flake8
"W", # pycodestyle warnings
"I", # import sort
"B", # bugbear, avoid non-sense statements
"UP", # modern python (upgradable style)
"DTZ", # datetime timezone
"PTH", # prefer pathlib
"LOG", # logging
"T100", # debugger
"T203", # pprint
"FIX", # lines with TODO, FIXME, XXX and HACK
]
[tool.mypy]
python_version = '3.9'
exclude_gitignore = true
files = ["scripts/capp", "scripts/deploy-capp", "scripts/wait-for-cpu-idle"]
scripts_are_modules = true
[tool.poe.tasks]
lint_code = { cmd = "ruff check --fix", help = "Lint code" }
lint_type = { cmd = "mypy", help = "Type check code" }
lint = ["lint_code", "lint_type"]
test = { cmd = "./test/testindocker", help = "Run capp in docker to test" }