-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (48 loc) · 1.14 KB
/
pyproject.toml
File metadata and controls
59 lines (48 loc) · 1.14 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
[build-system]
requires = ["setuptools>=68", "setuptools-git-versioning >=2.0,<3"]
build-backend = "setuptools.build_meta"
[project]
name = "cmlxc"
description = "Local LXC/Incus container management for chatmail relay development and testing"
readme = "README.md"
requires-python = ">= 3.10"
license = {text = "MPL-2.0"}
dependencies = [
"termcolor>=2.4.0",
"xdg-base-dirs>=6.0.2",
"argcomplete>=3.0.0",
]
dynamic = ["version"]
[tool.setuptools-git-versioning]
enabled = true
[project.urls]
Repository = "https://github.com/chatmail/cmlxc"
[project.scripts]
cmlxc = "cmlxc.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
namespaces = true
[tool.pytest.ini_options]
addopts = "-v -ra --strict-markers"
testpaths = ["tests"]
[tool.ruff]
lint.select = [
"F", # Pyflakes
"I", # isort
"PLC", # Pylint Convention
"PLE", # Pylint Error
"PLW", # Pylint Warning
]
[tool.tox]
env_list = ["lint", "tests"]
[tool.tox.env.lint]
deps = ["ruff"]
commands = [
["ruff", "check", "src/", "tests/"],
["ruff", "format", "--check", "src/", "tests/"],
]
[tool.tox.env.tests]
deps = ["pytest"]
commands = [
["pytest", "tests/", "-v"],
]