-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (62 loc) · 1.25 KB
/
pyproject.toml
File metadata and controls
74 lines (62 loc) · 1.25 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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 61.0"]
[project]
dependencies = [
"click",
"kafka-python",
"pytz",
"rich",
"sh",
]
description = "Python utils to simplify DAQ development."
name = "daqpytools"
readme = "docs/README.md"
requires-python = ">=3.10"
version = "0.1.0"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"daqpytools.logging" = ["log_format.ini"]
[project.optional-dependencies]
dev = [
"ruff",
"pytest",
"pytest-cov",
]
test = ["pytest", "pytest-mypy", "pytest-cov", "types-pytz"]
[project.scripts]
daqpytools-logging-demonstrator = "daqpytools.apps.logging_demonstrator:main"
# Stricter linting rules than the standard (daq-deliverables #196); this is fine
[tool.ruff]
line-length = 88
[tool.ruff.lint]
ignore = ["D205", "D100", "D104"]
pydocstyle.convention = "google"
select = [
"D",
"E",
"F",
"I",
"UP",
"RUF",
"S",
"N",
"ERA",
"B",
"C4",
"A",
"RET",
"T20",
"ISC",
"G",
"TRY",
"T",
"ANN",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D100", "D103", "D104", "S101", "ANN201"]
[tool.pytest.ini_options]
addopts = "-v -p no:warnings --cov=daqpytools --cov=src/daqpytools tests/"
[tool.coverage.run]
omit = ["tests/*"]