-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (52 loc) · 1.43 KB
/
pyproject.toml
File metadata and controls
60 lines (52 loc) · 1.43 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
[project]
name = "diffusion-model-2d"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"torch>=2.9.1",
"tensorboard>=2.15.0",
"scikit-learn>=1.8.0",
"numba>=0.61.0",
"matplotlib>=3.10.8",
"pillow>=11.0.0",
]
[project.optional-dependencies]
dev = ["pre-commit>=4.0.0", "pytest>=8.0.0", "ruff>=0.8.0"]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["diffusion_model_2d*"]
[tool.ruff]
line-length = 88
target-version = "py313"
[tool.ruff.format]
# Use double quotes for strings (black default)
quote-style = "double"
# Indent with spaces (black default)
indent-style = "space"
# Respect magic trailing commas (black default)
skip-magic-trailing-comma = false
# Automatically detect line ending
line-ending = "auto"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"ANN", # flake8-annotations (type checking)
]
ignore = []
[tool.ruff.lint.isort]
# Group imports like isort with black profile
combine-as-imports = true
force-single-line = false
known-first-party = ["diffusion_model_2d"]
[tool.ruff.lint.per-file-ignores]
"*_test.py" = ["ANN"] # Ignore annotation rules in test files
"test_*.py" = ["ANN"] # Ignore annotation rules in test files