-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
73 lines (63 loc) · 1.61 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
[project]
name = "pdm-plugin-torch"
version = "23.4.0"
description = "A plugin to help installing torch versions"
authors = [
{name = "Embark Studios", email = "python@embark-studios.com"},
]
requires-python = ">=3.8"
readme = "README.md"
license = {text = "MIT"}
dependencies = [ ]
[tool.pdm.dev-dependencies]
tools = [
"pytest~=6.0",
"black~=22.1",
"bandit~=1.7",
"isort~=5.10",
"pytest",
"pytest-xdist",
]
docs = [
"Sphinx~=4.4",
"sphinxcontrib-apidoc~=0.3",
"sphinx-autodoc-typehints~=1.17",
"sphinx-rtd-theme~=1.0.0",
"myst-parser~=0.18.0"
]
[project.urls]
repository = "https://github.com/EmbarkStudios/pdm-plugin-torch"
[build-system]
requires = ["pdm-backend>=2.0.0"]
build-backend = "pdm.backend"
[project.entry-points.pdm]
pdm_plugin_torch = "pdm_plugin_torch.main:torch_plugin"
[tool.pdm.build]
package-dir = "pdm-plugin-torch"
includes = ["pdm-plugin-torch"]
source-includes = ["tests", "CHANGELOG.md", "LICENSE", "README.md"]
# editables backend doesn't work well with namespace packages
editable-backend = "path"
[tool.isort]
py_version = 38
profile = "black"
combine_as_imports = true
lines_between_types = 1
lines_after_imports = 2
src_paths = ["pdm-plugin-torch"]
[tool.black]
target-version = ['py38']
[tool.mypy]
check_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
files = "src"
[tool.pytest.ini_options]
minversion = "6.0"
log_cli = true
#log_cli_level = "INFO" # Useful when debugging locally
log_format = "%(asctime)s:\t%(message)s"
log_date_format = "%H:%M:%S"