-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
77 lines (71 loc) · 2.43 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
[project]
name = "mnemonic-gen"
version = "0.2.0"
description = "Generate mnemonic sentences for English words"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"accelerate>=1.0.1",
"datasets", # Hugging Face datasets
"evaluate",
"hf-transfer>=0.1.8", # Web app
"numpy<2.0.0", # Wait for other packages to update
"openai>=1.57.0",
"peft", # HF parameter-efficient training
"pre-commit>=4.0.1", # Pre-commit hooks
"python-dotenv>=1.0.1", # Load environment variables
"pyyaml>=6.0.2", # YAML config
"ruff>=0.7.1",
"spaces>=0.31.0",
"torch==2.4.0", # PyTorch
"tqdm>=4.67.1", # Progress bar
"transformers", # HF transformers
"trl",
"wandb", # Weights and Biases for logging
]
[project.urls]
repository = "https://github.com/chiffonng/capstone"
dataset = "https://doi.org/10.57967/hf/3750"
[tool.ruff]
src = ["src"]
target-version = "py310"
extend-exclude = ["*__init__.py", "*.pyi"]
[tool.ruff.format]
docstring-code-format = true # format code in docstrings
docstring-code-line-length = 88
[tool.ruff.lint]
exclude = ["*__init__.py", "*.ipynb"] # Do not lint __init__.py and Jupyter notebooks
extend-select = [
"B", # flake8-bugbear, bugbear checks
"D", # pydocstyle, all functions and classes must have docstrings
"I", # isort
"PT", # flakes8-pytest-style, pytest fixtures and style
"PTH", # flake8-use-pathlib, use pathlib instead of os.path
"B", # flake8-bugbear, bugbear checks
"D", # pydocstyle, all functions and classes must have docstrings
"I", # isort
"PT", # flakes8-pytest-style, pytest fixtures and style
"PTH", # flake8-use-pathlib, use pathlib instead of os.path
]
extend-safe-fixes = [
"ANN", # missing type annotation
"D", # pydocstyle docstrings
"DOC", # pydoclint docstring conventions
"F", # pyflakes
"I002", # missing import
"ICN", # import conventions
"LOG", # logging conventions
"Q", # flake8-quotes
]
extend-fixable = ["B", "D"]
ignore = ["T201", "T203", "F401"] # print, pprint statements OK, unused imports OK
isort.case-sensitive = true
flake8-type-checking.quote-annotations = true
pydocstyle.convention = "google"
pycodestyle.max-doc-length = 88
[tool.uv]
python-downloads = "manual" # change to "automatic" to download Python specified in .python-version
upgrade-package = ["ruff", "tqdm"]
managed = true
[dependency-groups]
dev = ["ipykernel>=6.29.5", "matplotlib>=3.9.2", "pandas>=2.2.3", "pyarrow>=18.1.0"]