-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (144 loc) · 3.79 KB
/
pyproject.toml
File metadata and controls
166 lines (144 loc) · 3.79 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[project]
name = "rapids-cli"
description = "A CLI for RAPIDS"
dynamic = ["version"]
license = "Apache-2.0"
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"cuda-bindings>=12.9.6,!=13.0.*,!=13.1.*",
"cuda-core >=0.6.0",
"cuda-pathfinder >=1.2.3",
"importlib-metadata >= 4.13.0; python_version < '3.12'",
"nvidia-ml-py>=12.0",
"packaging",
"psutil",
"pyyaml",
"rich",
"rich-click",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.
[project.scripts]
rapids = "rapids_cli.cli:rapids"
[project.entry-points.rapids_doctor_check]
gpu = "rapids_cli.doctor.checks.gpu:gpu_check"
gpu_compute_capability = "rapids_cli.doctor.checks.gpu:check_gpu_compute_capability"
cuda = "rapids_cli.doctor.checks.cuda_driver:cuda_check"
memory_to_gpu_ratio = "rapids_cli.doctor.checks.memory:check_memory_to_gpu_ratio"
nvlink_status = "rapids_cli.doctor.checks.nvlink:check_nvlink_status"
cuda_toolkit = "rapids_cli.doctor.checks.cuda_toolkit:cuda_toolkit_check"
[project.urls]
Homepage = "https://github.com/rapidsai/rapids-cli"
Source = "https://github.com/rapidsai/rapids-cli"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.vcs]
version-file = "rapids_cli/_version.py"
[tool.hatch.version]
source = "vcs"
[tool.black]
# this should match the oldest version of Python the library supports
target-version = ["py310"]
[tool.codespell]
# NOTE: pre-commit passes explicit lists of files here, which this skip file list doesn't override.
# This is just here for IDEs.
skip = "./.git,./pyproject.toml,./.ruff_cache"
quiet-level = 3
[tool.pydistcheck]
select = [
"distro-too-large-compressed",
]
# PyPI hard limit is 1GiB, but try to keep this as small as possible
max_allowed_size_compressed = '10Mi'
[tool.pytest.ini_options]
testpaths = ["rapids_cli/tests"]
addopts = "--cov=rapids_cli --cov-report=term-missing --cov-report=xml --cov-fail-under=95"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
line-length = 120
# this should be set to the oldest version of Python the package supports
target-version = "py310"
[tool.ruff.lint]
select = [
# flake8-bugbear
"B",
# pydocstyle
"D",
# pycodestyle (errors)
"E",
# isort
"I",
# pyflakes
"F",
# pep8-naming
"N",
# pyupgrade
"UP",
# pycodestyle (warnings)
"W",
]
fixable = ["ALL"]
ignore = [
# (pydocstyle) Missing docstring in public class
"D101",
# (pydocstyle) Multi-line docstring summary should start at the first line
"D212",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"rapids_cli/tests/*" = [
# pydocstyle
"D",
]
"docs/*" = [
# pydocstyle
"D",
]
[tool.mypy]
exclude = ["examples", "venv", "ci", "docs", "conftest.py"]
ignore_missing_imports = true
[tool.coverage.run]
source = ["rapids_cli"]
omit = [
"rapids_cli/tests/*",
"rapids_cli/_version.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]