-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
97 lines (90 loc) · 2.44 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
[project]
name = "app"
version = "0.1.0"
description = "Example data science project"
readme = "README.md"
requires-python = "==3.12.*"
dependencies = [
"falcon>=4.0.1",
"gunicorn>=23.0.0",
"marshmallow>=3.23.0",
"numpy>=1.26.4",
"onnxruntime>=1.19.2",
"optimum",
]
[tool.uv]
dev-dependencies = [
"datasets>=3.0.2",
"dvc>=3.56.0",
"ipywidgets>=8.1.5",
"jupyterlab>=4.2.5",
"matplotlib>=3.9.2",
"pandas>=2.2.3",
"pre-commit>=4.0.1",
"pytest>=8.3.3",
"ruff>=0.7.1",
"scikit-learn>=1.5.2",
"skl2onnx>=1.17.0",
"snakeviz>=2.2.0",
"stopwordsiso>=0.6.1",
"transformers>=4.42.0",
]
[tool.uv.sources]
optimum = { git = "https://github.com/VTrngNghia/optimum" }
[tool.ruff]
line-length = 99
extend-include = ["*.ipynb"]
[tool.ruff.format]
line-ending = "lf"
[tool.ruff.lint]
select = [
"YTT", # flake8-2020
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"S", # flake8-bandit
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"PIE", # flake8-pie
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"I", # isort
"NPY", # NumPy-specific rules
"N", # pep8-naming
"E", # pycodestyle errors
"W", # pycodestyle warnings
"D", # pydocstyle
"F", # Pyflakes
"UP", # pyupgrade
"RUF", # Ruff-specific rules
]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
]
[tool.ruff.lint.per-file-ignores]
"tests/test_*.py" = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D400", # First line should end with a period
"D401", # First line should be in imperative mood
"S101", # Use of `assert` detected
]
"*.ipynb" = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D400", # First line should end with a period
"D401", # First line should be in imperative mood
"S101", # Use of `assert` detected
"B018", # Found useless expression
"E402", # Module level import not at top of file
"E501", # Line too long
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"