This repository was archived by the owner on Jul 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (58 loc) · 1.37 KB
/
Copy pathpyproject.toml
File metadata and controls
64 lines (58 loc) · 1.37 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
[project]
name = "smoothdiff-torch"
version = "0.1.0"
description = "SmoothDiff for PyTorch."
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"torch>=2.7.1",
]
[dependency-groups]
test = [
"pytest>=8.0",
"ruff>=0.8",
]
examples = [
"cmcrameri>=1.9",
"ipykernel>=6.30.0",
"matplotlib>=3.10.3",
"numpy>=2.3.2",
"pillow>=11.3.0",
"torchvision>=0.22.1",
"tqdm>=4.67.1",
]
[tool.pytest.ini_options]
addopts = "--tb=short -q --no-header"
testpaths = ["tests"]
[tool.ty.src]
exclude = ["examples"]
[tool.ruff]
line-length = 88
target-version = "py311"
extend-exclude = ["examples"]
[tool.ruff.lint]
select = [
"D", # pydocstyle
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ICN", # flake8-import-conventions
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"T20", # flake8-print
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"PERF", # perflint
"PLC0415", # prohibit imports outside of top-level
"RUF", # ruff-specific rules
"UP", # pyupgrade
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"