forked from beneisner/python_pkg_template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
72 lines (61 loc) · 1.62 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
[project]
name = "python-ml-project-template"
version = "0.1.0"
description = "A Python Package Template"
readme = "README.md"
requires-python = ">=3.6"
license = { file = "LICENSE.txt" }
authors = [{ email = "baeisner@andrew.cmu.edu", name = "Ben Eisner" }]
dependencies = [
"hydra-core == 1.3.2",
"lightning == 2.4.0",
"omegaconf == 2.3.0",
"pandas",
"ray[default] == 2.37.0",
"torch == 2.4.1", # CUDA 12.4
"torchmetrics",
"torchvision == 0.19.1", # CUDA 12.4
"wandb == 0.19.1",
# r-pad deps.
"rpad-core @ git+https://github.com/r-pad/core.git",
]
[build-system]
requires = ["setuptools >= 62.3.2", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"
[project.optional-dependencies]
develop = [
"autoflake == 2.1.1",
"black == 23.3.0",
"isort == 5.12.0",
"mypy == 1.3.0",
"pandas-stubs == 2.0.2.230605",
"pylint == 2.17.4",
"pytest == 7.3.2",
"pre-commit == 3.3.3",
]
notebooks = ["jupyter"]
build_docs = ["mkdocs-material", "mkdocstrings[python]"]
# This is required to allow us to have notebooks/ at the top level.
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
python_ml_project_template = ["py.typed"]
[tool.isort]
profile = "black"
known_third_party = "wandb"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
[[tool.mypy.overrides]]
module = ["torchvision.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = "tests"
[tool.pylint]
known-third-party = "wandb"
[tool.pylint.TYPECHECK]
generated-members = 'torch.*'