-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·136 lines (129 loc) · 3.36 KB
/
pyproject.toml
File metadata and controls
executable file
·136 lines (129 loc) · 3.36 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "MakerMatrix"
version = "0.1.0"
description = "A powerful, modern electronic parts inventory management system designed for makers, engineers, and electronics enthusiasts"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "MIT"}
authors = [
{name = "MakerMatrix Contributors"}
]
keywords = ["inventory", "electronics", "parts", "management", "maker"]
# Dependencies are managed in requirements.txt
# Install with: pip install -r requirements.txt
[tool.pytest.ini_options]
markers = [
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
"critical: marks tests as critical security tests",
]
testpaths = ["MakerMatrix/tests", "MakerMatrix/integration_tests", "MakerMatrix/unit_tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --strict-markers -m \"not integration\""
[tool.black]
line-length = 120
target-version = ['py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| venv_test
| _build
| buck-out
| build
| dist
| node_modules
| MakerMatrix/frontend
)/
'''
[tool.vulture]
min_confidence = 80
exclude = [
"venv_test/",
"venv_test_new/",
"*.pyc",
"__pycache__/",
"node_modules/",
"dist/",
"coverage/",
".pytest_cache/",
".git/",
# Legacy/experimental code that may have unused components
"MakerMatrix/lib/",
# Task implementations that are registered via class discovery
"MakerMatrix/tasks/",
# Test utilities and fixtures
"MakerMatrix/tests/conftest.py"
]
# Configuration for ignoring false positives
# Add paths to files with intentional unused code
ignore_names = [
# Test fixtures that appear unused but are used by pytest
"setup_*",
"clean_*",
"sample_*",
"*_fixture",
# Common test variables
"client",
"session",
# Database engine parameter used in event handlers
"connection_record",
# Imports that are re-exported
"LabelData",
"PydanticField",
"EnrichmentProfileModel",
"DateTime",
"Boolean",
"Integer",
"Text",
"relationship",
"Form",
"OAuth2PasswordRequestForm",
"GenericPartQuery",
"UpdateQuantityRequest",
"Coroutine",
"user_models",
"pytest_asyncio",
"get_all_suppliers_info",
"TaskSecurityError",
"AsyncGenerator",
# Abstract method parameters
"print_config",
# Pytest parametrize parameters that may not be directly used in test body
"expected_error",
# Pydantic model configuration
"model_config",
# Mock test attributes that appear unused
"side_effect",
"__aexit__",
# FastAPI lifespan function
"lifespan",
# Task classes used by task system
"*Task",
# Exception handlers registered with FastAPI
"*_handler",
# Public API functions that may not be called internally
"serve_*",
# Test markers
"pytestmark",
# Task discovery functions
"get_task_class",
"list_available_tasks"
]
# Paths to ignore completely
ignore_decorators = [
"@pytest.fixture",
"@app.middleware",
"@app.on_event"
]