-
Notifications
You must be signed in to change notification settings - Fork 190
/
pyproject.toml
93 lines (75 loc) · 2.2 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools>=66", "wheel", "Cython", "setuptools-scm>=8.0"]
[project]
name = "tsfm_public"
requires-python = ">=3.9,<3.13"
# version = "0.0.1"
dynamic = ["version"]
authors = [{ name = "IBM" }]
description = "Public notebooks and utilities for TSFM"
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"pandas>=2.2.0",
"scikit-learn",
"transformers[torch]>=4.38.0",
"datasets",
"deprecated",
"urllib3>=1.26.19,<2", # see https://github.com/urllib3/urllib3/security/advisories/GHSA-34jh-p97f-mpxf
"numpy<2",
]
[tool.setuptools]
packages = ["tsfm_public", "tsfmhfdemos"]
[project.optional-dependencies]
all = ["tsfm_public[notebooks,testing,dev]"]
notebooks = [
"jupyter",
"matplotlib",
"datasets",
"ipywidgets",
"plotly",
"kaleido",
"tensorboard",
]
testing = ["pytest", "tsfm_public[notebooks]", "parameterized"]
dev = ["pre-commit", "tsfm_public[testing]", "ruff==0.4.4"]
# ogv deployments will already have jupyter
# and we don't want to mess with RH's tested version
ogv = ["datasets", "plotly", "kaleido"]
demos = [
"tsfm_public[notebooks]",
"streamlit",
"altair<5",
"plotly",
"streamlit-aggrid",
"kaleido",
"toml",
]
# ###################################################
[tool.setuptools_scm]
version_file = "tsfm_public/_version.py"
[tool.ruff]
line-length = 119
lint.ignore = ["C901", "E501", "E741", "F402", "F823"]
lint.select = ["C", "E", "F", "I", "W"]
extend-exclude = ["tsfm_public/_version.py"]
extend-include = ["*.ipynb"]
# Ignore import violations in all `__init__.py` files.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401", "F403", "F811"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["tsfm_public"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"