-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52537bd
commit 9a9b471
Showing
5 changed files
with
71 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,13 @@ version = "0.9.5" | |
description = "Time-series machine learning at scale." | ||
readme = "README.md" | ||
authors = [ | ||
{ name = "functime Team", email = "[email protected]" }, | ||
{ name = "Chris Lo", email = "[email protected]" }, | ||
{ name = "Daryl Lim", email = "[email protected]" }, | ||
{ name = "Chris Lo", email = "[email protected]" }, | ||
{ name = "Daryl Lim", email = "[email protected]" }, | ||
] | ||
maintainers = [ | ||
{ name = "functime Team", email = "[email protected]" }, | ||
{ name = "Luca Baggi" } | ||
] | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
|
@@ -28,6 +30,8 @@ classifiers = [ | |
"Topic :: Scientific/Engineering", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
|
||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"cloudpickle", | ||
"flaml<3,>=2.0.2", | ||
|
@@ -39,14 +43,38 @@ dependencies = [ | |
"tqdm", | ||
'typing-extensions; python_version < "3.10"', | ||
] | ||
|
||
[project.optional-dependencies] | ||
plot = [ | ||
"kaleido==0.2.1", | ||
"pandas", | ||
"plotly", | ||
] | ||
cat = [ | ||
"catboost", | ||
] | ||
lgb = [ | ||
"lightgbm", | ||
] | ||
xgb = [ | ||
"pyarrow", | ||
"xgboost", | ||
] | ||
ann = [ | ||
"pyarrow", | ||
"pylance", | ||
] | ||
cat = [ | ||
"catboost", | ||
tree = [ | ||
"functime[cat,lgb,xgb]" | ||
] | ||
llm = [ | ||
"openai", | ||
"tabulate", | ||
"tenacity", | ||
"tiktoken", | ||
] | ||
|
||
# provisionally here until PEP 735 is approved: https://peps.python.org/pep-0735/ | ||
dev = [ | ||
"pre-commit", | ||
"functime[doc,plot,test]" | ||
|
@@ -58,24 +86,9 @@ doc = [ | |
"mkdocs-material", | ||
"mkdocstrings-python", | ||
] | ||
lgb = [ | ||
"lightgbm", | ||
] | ||
llm = [ | ||
"openai", | ||
"tabulate", | ||
"tenacity", | ||
"tiktoken", | ||
] | ||
plot = [ | ||
"kaleido==0.2.1", | ||
"pandas", | ||
"plotly", | ||
] | ||
test = [ | ||
"aeon<0.5.0", | ||
"coverage[toml]", | ||
"fastapi", | ||
"joblib", | ||
"mlforecast==0.8.1", | ||
"pandas", | ||
|
@@ -86,50 +99,48 @@ test = [ | |
"statsmodels", | ||
"tsfresh", | ||
] | ||
xgb = [ | ||
"pyarrow", | ||
"xgboost", | ||
] | ||
|
||
[tool.maturin] | ||
module-name = "functime._functime_rust" | ||
features = ["pyo3/extension-module"] | ||
exclude = ["docs/**, data/**", "tests/**", ".pre-commit-config.yaml"] | ||
|
||
[tool.ruff] | ||
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"] | ||
extend-include = ["*.ipynb"] | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"E", # pycodestyle errors | ||
"W", # pycodestyle warnings | ||
"F", # pyflakes | ||
"I", # isort | ||
"B", # flake8-bugbear | ||
"UP", # pyupgrade | ||
"I", # isort | ||
"E", # pycodestyle errors | ||
"W", # pycodestyle warnings | ||
"F", # pyflakes | ||
"I", # isort | ||
"B", # flake8-bugbear | ||
"UP", # pyupgrade | ||
"I", # isort | ||
] | ||
ignore = [ | ||
"E501", # line too long, handled by black | ||
"B008", # do not perform function calls in argument defaults | ||
"B905", # `zip()` without an explicit `strict=` parameter | ||
"B018", # Found useless expression. | ||
"F821", # Undefined name | ||
"E501", # line too long, handled by black | ||
"B008", # do not perform function calls in argument defaults | ||
"B905", # `zip()` without an explicit `strict=` parameter | ||
"B018", # Found useless expression. | ||
"F821", # Undefined name | ||
] | ||
|
||
[tool.ruff.pyupgrade] | ||
[tool.ruff.lint.pyupgrade] | ||
# Preserve types, even if a file imports `from __future__ import annotations`. | ||
keep-runtime-typing = true | ||
|
||
[tool.pytest.ini_options] | ||
addopts = [ | ||
"--strict-config", | ||
"--strict-markers", | ||
"-m not benchmark and not slow", | ||
"--benchmark-disable", | ||
"--strict-config", | ||
"--strict-markers", | ||
"-m not benchmark and not slow", | ||
"--benchmark-disable", | ||
] | ||
markers = [ | ||
"slow: marks tests as slow (deselect with '-m \"not slow\"')", | ||
"benchmark: marks tests as part of benchmarking", | ||
"multivariate: marks multivariate forecast test", | ||
"slow: marks tests as slow (deselect with '-m \"not slow\"')", | ||
"benchmark: marks tests as part of benchmarking", | ||
"multivariate: marks multivariate forecast test", | ||
] | ||
xfail_strict = true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters