-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
207 lines (190 loc) 路 4.85 KB
/
Copy pathpyproject.toml
File metadata and controls
207 lines (190 loc) 路 4.85 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#####################################################################################################################################################################################################
# Project: Juniper
# Sub-Project: JuniperData
# Application: juniper_data
# File Name: pyproject.toml
# Author: Paul Calnon
# Version: 0.4.0
#
# Date Created: 2026-01-29
# Last Modified: 2026-02-06
#
# License: MIT License
# Copyright: Copyright (c) 2024,2025,2026 Paul Calnon
#
# Description:
# Python project configuration for Juniper Data
# Dataset generation and management service for the Juniper ecosystem
#
# References:
# - JuniperCascor project patterns
# - JUNIPER-DATA-001: CI/CD Pipeline Setup
#####################################################################################################################################################################################################
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "juniper-data"
version = "0.4.0"
description = "Dataset generation and management service for the Juniper ecosystem"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Paul Calnon" }]
# requires-python = ">=3.11"
requires-python = ">=3.12"
dependencies = [
"numpy>=1.24.0",
"pydantic>=2.0.0",
"python-dotenv>=1.0.0",
]
[project.optional-dependencies]
arc-agi = [
"arc-agi>=0.9.0",
]
api = [
"fastapi>=0.100.0",
"uvicorn[standard]>=0.23.0",
"pydantic-settings>=2.0.0",
]
test = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-timeout>=2.2.0",
"pytest-asyncio>=0.21.0",
"httpx>=0.24.0",
"coverage[toml]>=7.0.0",
]
dev = [
"black>=23.0.0",
"isort>=5.12.0",
"mypy>=1.0.0",
"flake8>=7.0.0",
"bandit[sarif]>=1.7.9",
"pip-audit>=2.7.0",
"pre-commit>=3.0.0",
"flake8-bugbear>=24.0.0",
"flake8-comprehensions>=3.14.0",
"flake8-simplify>=0.21.0",
]
all = [
"juniper-data[api,arc-agi,dev,test]",
]
[tool.setuptools.packages.find]
where = ["."]
include = ["juniper_data*"]
[tool.black]
line-length = 512
# target-version = ["py311", "py312", "py313", "py314"] # py314 not yet supported by black
target-version = ["py311", "py312", "py313"]
include = '\.pyi?$'
extend-exclude = '''
/(
\.git
| \.pytest_cache
| \.trunk
| __pycache__
| data
| logs
| reports
| htmlcov
| images
)/
'''
[tool.isort]
profile = "black"
line_length = 512
skip = [".git", "__pycache__", ".pytest_cache", ".trunk", "data", "logs", "reports", "htmlcov"]
skip_glob = ["*/data/*", "*/logs/*", "*/reports/*"]
known_first_party = ["juniper_data"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
default_section = "THIRDPARTY"
[tool.bandit]
exclude_dirs = ["tests", "reports", "logs", "htmlcov", "data"]
skips = ["B101", "B311"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["juniper_data/tests"]
pythonpath = ["."]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-ra",
"-q",
"--strict-markers",
"--strict-config",
"--tb=short",
]
# Filter expected deprecation warnings from dependencies
filterwarnings = [
"ignore::DeprecationWarning:uvicorn.*",
"ignore::DeprecationWarning:httpx.*",
"ignore::PendingDeprecationWarning:pydantic.*",
]
markers = [
"unit: Unit tests for individual components",
"integration: Integration tests for full workflows",
"performance: Performance and benchmarking tests",
"slow: Tests that take a long time to run",
"spiral: Tests specifically for spiral dataset generation",
"api: Tests for API endpoints",
"generators: Tests for data generators",
"storage: Tests for storage operations",
]
timeout = 60
timeout_method = "signal"
[tool.coverage.run]
source_pkgs = ["juniper_data"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/data/*",
"*/logs/*",
# "*/__main__.py",
# "*/api/*",
]
branch = true
[tool.coverage.report]
fail_under = 80
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
"^\\s*pass\\s*$",
]
show_missing = true
precision = 2
[tool.coverage.html]
directory = "htmlcov"
[tool.coverage.xml]
output = "coverage.xml"
[tool.mypy]
python_version = "3.14"
warn_return_any = false
warn_unused_configs = true
ignore_missing_imports = true
exclude = [
"^data/",
"^logs/",
"^reports/",
"^htmlcov/",
]
[[tool.mypy.overrides]]
module = [
"numpy.*",
"pydantic.*",
"fastapi.*",
"uvicorn.*",
]
ignore_missing_imports = true
# Relaxed type checking for test code
[[tool.mypy.overrides]]
module = [
"juniper_data.tests.*",
]
# allow_untyped_defs = true
disallow_untyped_defs = false