-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (116 loc) · 2.47 KB
/
Copy pathpyproject.toml
File metadata and controls
125 lines (116 loc) · 2.47 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "lizardbyte-common"
version = "0.0.0"
description = "Common helper scripts and repository tooling for LizardByte"
readme = "README.md"
requires-python = ">=3.14"
authors = [
{name = "LizardByte", email = "lizardbyte@users.noreply.github.com"},
]
dependencies = []
[project.scripts]
lb-localize = "scripts.localize:main"
lb-update-clang-format = "scripts.update_clang_format:main"
[project.optional-dependencies]
dev = [
"lizardbyte-common[c]",
"lizardbyte-common[lint-python]",
"lizardbyte-common[test-python]",
]
c = [
"lizardbyte-common[lint-c]",
"lizardbyte-common[locale]",
"lizardbyte-common[test-c]",
]
lint-c = [
"clang-format==22.1.8",
"cmakelang==0.6.13",
]
lint-python = [
"flake8==7.3.0",
]
locale = [
"babel==2.18.0",
]
test-c = [
"gcovr==8.6",
]
test-python = [
"pytest==9.1.1",
"pytest-cov==7.1.0",
]
[dependency-groups]
dev = [
{include-group = "c"},
{include-group = "lint-python"},
{include-group = "test-python"},
]
c = [
{include-group = "lint-c"},
{include-group = "locale"},
{include-group = "test-c"},
]
lint-c = [
"clang-format==22.1.8",
"cmakelang==0.6.13",
]
lint-python = [
"flake8==7.3.0",
]
locale = [
"babel==2.18.0",
]
test-c = [
"gcovr==8.6",
]
test-python = [
"pytest==9.1.1",
"pytest-cov==7.1.0",
]
[project.urls]
Homepage = "https://github.com/LizardByte/lizardbyte-common"
Repository = "https://github.com/LizardByte/lizardbyte-common"
Issues = "https://github.com/LizardByte/lizardbyte-common/issues"
[tool.setuptools]
packages = ["scripts"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-rxXs",
"--tb=native",
"--verbose",
"--color=yes",
"-p", "no:cacheprovider",
"--cov=scripts",
"--cov-report=term-missing",
"--cov-report=xml:coverage/python-coverage.xml",
"--cov-fail-under=100",
"--junitxml=junit-python.xml",
"-o", "junit_family=legacy",
]
markers = [
"unit: Unit tests",
]
[tool.coverage.run]
source = ["scripts"]
omit = [
"*/tests/*",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]