-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (140 loc) · 4 KB
/
Copy pathpyproject.toml
File metadata and controls
155 lines (140 loc) · 4 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
[project]
name = "ai-flora-mind"
version = "0.1.0"
description = "AI Flora Mind - Python service with AI capabilities"
authors = [{name="Leopoldo Garcia Vargas", email="lk13.dev@gmail.com"}]
license = {text = "Apache-2.0"}
requires-python = ">=3.12"
dependencies = [
# Server
"fastapi>=0.115.4",
"uvicorn>=0.32.0",
"gunicorn>=23.0.0",
# Data science and ML
"numpy>=1.25.0",
"pandas>=2.1.0",
"scikit-learn>=1.5.0",
# ML models
"xgboost>=1.7.0",
"lightgbm>=4.0.0",
"torch>=2.1.0",
# Utilities
"shap>=0.42.0",
"python-dotenv>=1.0.0",
"loguru>=0.7.0",
# Core dependencies
"pydantic>=2.11.5",
"pydantic-settings>=2.9.1",
"structlog>=25.4.0",
"matplotlib>=3.10.3",
"seaborn>=0.13.2",
"tabulate>=0.9.0",
]
[project.optional-dependencies]
dev = [
# Testing
"pytest>=7.4.0",
"pytest-asyncio>=0.22.0",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"requests>=2.32.0",
"requests-mock>=1.11.0",
# Code quality
"mypy>=1.6.0",
"flake8>=6.0.0",
"black>=24.3.0",
"ruff>=0.7.1",
"types-requests>=2.0.0",
# Pre-commit
"pre-commit>=4.2.0",
# Release tooling
"python-semantic-release>=9.15.0",
# Jupyter notebook support
"jupyter>=1.0.0",
"ipykernel>=6.0.0",
]
# [tool.uv.sources]
# Add custom package sources here if needed
[tool.setuptools.packages.find]
where = ["."]
include = [
"ai_flora_mind*",
]
[tool.ruff]
exclude = [
".bzr", ".direnv", ".eggs", ".git", ".hg", ".ipynb_checkpoints", ".mypy_cache",
".pytest_cache", ".ruff_cache", ".venv", ".vscode", "__pypackages__", "build",
"dist", "site-packages", "venv",
]
fix = true
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = [
"E4", # Enforce rules for imports (e.g., import placement and structure).
"E7", # Highlight syntax errors and potential issues in Python 3.x code.
"E9", # Catch syntax errors and undefined variables during static analysis.
"F", # Flag errors related to code logic, unused variables, or undefined names.
"I001", # Ensure that imports are sorted correctly.
"F401" # Detect and flag unused imports.
]
fixable = ["ALL"]
[tool.mypy]
python_version = "3.12"
strict = true
ignore_missing_imports = true
check_untyped_defs = true
disallow_untyped_calls = true
disallow_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
warn_redundant_casts = true
plugins = ["pydantic.mypy"]
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)s] %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
norecursedirs = ["examples", "lib", "local", "src", "research", "scripts"]
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "function"
markers = [
"unit: marks tests as unit tests (deselect with '-m \"not unit\"')",
"functional: marks tests as functional tests (deselect with '-m \"not functional\"')",
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')"
]
[tool.coverage.run]
omit = [
"tests/integration/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:"
]
[tool.semantic_release]
version_source = "commit"
version_toml = ["pyproject.toml:project.version"]
no_git_verify = true
upload_to_release = false
changelog_file = "CHANGELOG.md"
fallback_version_bump = "patch"
allow_zero_version = true
tag_format = "v{version}"
commit_message = "{version}\n\nAutomatically generated by python-semantic-release [no ci]"
commit_parser = "angular"
[tool.semantic_release.commit_parser_options]
minor_tags = ["feat"]
patch_tags = ["fix", "perf", "research", "chore"]
allowed_tags = ["feat", "fix", "perf", "build", "chore", "ci", "docs", "style", "refactor", "test", "research"]
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease_token = "rc"
prerelease = false
[tool.uv]
dev-dependencies = [
"mypy>=1.13.0",
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"