-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (95 loc) · 1.73 KB
/
pyproject.toml
File metadata and controls
100 lines (95 loc) · 1.73 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
[project]
name = "tiny-diff"
dynamic = ["version"]
description = "Hackable implementation of diffusion models"
authors = [
{name = "Alejandro Barón", email = "alejandrobarongarcia10@gmail.com"},
]
dependencies = [
"torch<2.4,>=2",
]
requires-python = ">=3.9"
readme = "README.md"
license = {text = "MIT"}
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.version]
source = "scm"
fallback_version = "0.1.0"
write_to = "tiny_diff/version.info"
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
"A",
"B",
"C4",
"C90",
"D",
"E",
"F",
"FA",
"NPY",
"PERF",
"PIE",
"PL",
"PT",
"Q",
"RET",
"RUF",
"S",
"SIM",
"TD",
"TID",
"T10",
"UP",
"W",
"YTT"
]
extend-select = [
"I", # see: isort
"C4", # see: https://pypi.org/project/flake8-comprehensions
"SIM", # see: https://pypi.org/project/flake8-simplify
"RET", # see: https://pypi.org/project/flake8-return
"PT", # see: https://pypi.org/project/flake8-pytest-style
"RUF100", # see: https://docs.astral.sh/ruff/rules/unused-noqa/
]
ignore = [
"D100",
"D104",
"D107",
"D202",
"D105",
"D401",
"FA100",
"RET504",
"RUF013",
"TD002",
"TD003",
"FIX002",
"UP007",
"UP038",
"UP035",
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = 'google'
[tool.ruff.lint.pylint]
max-args = 10
[tool.pdm.dev-dependencies]
dev = [
"pytest>=8.3.2",
"pre-commit>=3.8.0",
]
tutorials = [
"torchvision>=0.18.1",
"torchtune>=0.2.1",
"matplotlib>=3.9.2",
"mlflow>=2.16.0",
]