-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathpyproject.toml
114 lines (100 loc) · 2.36 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[project]
name = "mlfs-book"
version = "0.1.0"
description = "Build AI Systems with a Feature Store"
license = {text = "MIT"}
readme = "README.md"
requires-python = "~=3.11"
authors = [
{ name="Jim Dowling", email="jim@hopsworks.ai" },
]
dependencies = [
"hopsworks[python,polars,great-expectations]>=4.1.2",
"feldera>=0.33.0",
"huggingface-hub==0.24.7",
"ipykernel>=6.29.5",
"sentence-transformers==2.2.2",
"streamlit==1.28.2",
"email-validator==2.2.0",
"pydantic-settings>=2.6.1",
"geopy==2.4.1",
"openmeteo-requests",
"requests-cache==1.2.0",
"retry-requests==2.0.0",
"xgboost==2.0.3",
"scikit-learn==1.2.2",
"plotly",
"seaborn",
"nbformat",
"Faker",
"matplotlib==3.8.3"
]
#getpass4==0.0.14.1
#transformers==4.38.2
#langchain==0.1.10
#bitsandbytes==0.42.0
#accelerate==0.27.2
#openai==1.14.3
[tool.pytest.ini_options]
addopts = "-v --tb=short"
[project.optional-dependencies]
test = [
"pytest",
]
[tool.setuptools]
packages = ["tests/feature-tests","tests/ai-pipeline-tests"]
# Following styling form https://madewithml.com/courses/mlops/styling/
# Black formatting
[tool.black]
line-length = 150
include = '\.pyi?$'
exclude = '''
/(
.eggs # exclude a few common directories in the
| .git # root of the project
| .hg
| .mypy_cache
| .tox
| venv
| _build
| buck-out
| build
| dist
)/
'''
# iSort
[tool.isort]
profile = "black"
line_length = 79
multi_line_output = 3
include_trailing_comma = true
virtual_env = "conda"
[tool.flake8]
exclude = "venv"
ignore = ["E501", "W503", "E226"]
# E501: Line too long
# W503: Line break occurred before binary operator
# E226: Missing white space around arithmetic operator
[tool.ruff]
line-length = 120
exclude = ["excluded_file.py"]
lint.select = [
"E", # pycodestyle errors (settings from FastAPI, thanks, @tiangolo!)
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
lint.ignore = [
"E501", # line too long
"C901", # too complex
]
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint.isort]
order-by-type = true
relative-imports-order = "closest-to-furthest"
extra-standard-library = ["typing"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
known-first-party = []