This repository was archived by the owner on Jun 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (146 loc) · 3.61 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (146 loc) · 3.61 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[project]
name = "sensor-log-generator"
version = "0.0.0" # Version managed by git tags
description = "A robust sensor data simulation system for testing and development"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"numpy>=2.2.5",
"psutil>=7.0.0",
"pytest>=8.3.5",
"pyyaml>=6.0.2",
"requests>=2.32.3",
"tenacity>=9.1.2",
"pydantic>=2.0.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.23.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.8.0",
"mypy>=1.13.0",
"types-PyYAML>=6.0.0",
"types-requests>=2.31.0",
"pre-commit>=3.5.0",
"bandit[toml]>=1.7.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src"]
[tool.ruff]
target-version = "py311"
line-length = 100
indent-width = 4
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"ERA", # flake8-eradicate
"TRY", # tryceratops
"RUF", # ruff-specific rules
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"TRY003", # long exception messages
"SIM108", # use ternary operator
"ARG002", # unused method argument
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ARG", "PTH"]
"main.py" = ["TRY"]
[tool.mypy]
python_version = "3.11"
warn_return_any = false
warn_unused_configs = true
disallow_untyped_defs = false
disallow_any_generics = false
check_untyped_defs = false
no_implicit_optional = false
warn_redundant_casts = true
warn_unused_ignores = false
warn_no_return = true
follow_imports = "skip"
ignore_missing_imports = true
allow_untyped_globals = true
allow_redefinition = true
implicit_reexport = true
strict = false
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = [
"-v",
"--strict-markers",
"--tb=short",
"--disable-warnings",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
"timeout: marks tests with a timeout limit",
]
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/test_*.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
precision = 2
show_missing = true
skip_covered = false
[tool.bandit]
exclude_dirs = ["tests", "test_*.py", ".venv", "venv"]
severity = "medium"
confidence = "medium"
skips = ["B101", "B601"] # Skip assert_used and shell_with_params tests
[dependency-groups]
dev = [
"click>=8.2.1",
"mypy>=1.17.1",
"pytest-timeout>=2.4.0",
"pytest-xdist>=3.8.0",
"rich>=14.1.0",
"semver>=3.0.4",
"types-psutil>=7.0.0.20250822",
"types-pyyaml>=6.0.12.20250809",
"types-requests>=2.32.4.20250809",
]