forked from marvelousmlops/marvel-characters
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (77 loc) · 1.99 KB
/
pyproject.toml
File metadata and controls
89 lines (77 loc) · 1.99 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
[project]
name = "marvel-characters"
description = "Marvel characters project"
requires-python = ">=3.12, <3.13"
dependencies = [
"mlflow==3.1.1",
"cffi==1.17.1",
"cloudpickle==3.1.1",
"numpy==1.26.4",
"pandas==2.3.0",
"pyarrow==17.0.0",
"scikit-learn==1.7.0",
"lightgbm==4.6.0",
"scipy==1.16.0",
"databricks-sdk==0.55.0",
"pydantic==2.11.7",
"loguru==0.7.3",
"python-dotenv==1.1.1",
]
dynamic = ['version']
[project.optional-dependencies]
dev = ["databricks-connect>=16.0, <17",
"ipykernel>=6.29.5, <7",
"pip>=25.0.1, <26",
"pre-commit>=4.1.0, <5"]
test = ["pre-commit>=4.1.0, <5",
"pytest>=8.0.0, <9",
"pytest-cov>=5.0.0, <6",
"pyspark>=3.4.0, <4"]
[build-system]
requires = [
"setuptools>=72.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where =["src"]
include = ["house_price*", "marvel_characters*"]
[tool.setuptools.dynamic]
version = { file = "version.txt" }
[tool.pytest.ini_options]
testpaths = [ "tests" ]
pythonpath = [ "." ]
markers = [
"ci_exclude: Tests excluded from CI/CD pipeline"
]
addopts = [
"--cov=src",
"--cov-report=term",
"--cov-report=xml:coverage.xml"
]
[tool.ruff]
line-length = 120
lint.select = [
"F", # pyflakes rules
"E", # pycodestyle error rules
"W", # pycodestyle warning rules
"B", # flake8-bugbear rules
"I", # isort rules
"UP", # pyupgrade rules
"SIM", # flake8-simplify rules
"ERA", # eradicate rules
"C", # pylint convention rules
"D", # pydocstyle rules
"ANN" # flake8-annotations rules
]
lint.ignore = [
"D107", # Missing docstring in `__init__`
"D203", # incorrect-blank-line-before-class
"D213", # multi-line-summary-second-line
"E501", # line-too-long
"C901", # too complex
"ERA001", # commented out code
"D100", # missing docstring
"ERA001" # commented out code
]
[tool.ruff.format]
indent-style = "space"
docstring-code-format = true