-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (91 loc) 路 2.31 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (91 loc) 路 2.31 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "d3pm"
description = "Discrete Denoising Diffusion Probabilistic Models in MLX"
authors = [{name = "Simon Dirmeier", email = "simd23@pm.me"}]
readme = "README.md"
license = {file = "LICENSE"}
keywords = []
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10"
dependencies = [
"mlx>=0.20",
"numpy",
]
dynamic = ["version"]
[project.optional-dependencies]
all = []
[dependency-groups]
dev = [
"gitlint",
"pre-commit",
"ruff",
"pytest",
"pytest-cov",
"mypy>=2.3.0",
]
[project.urls]
Homepage = "https://github.com/dirmeier/d3pm-mlx"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.dynamic]
version = {attr = "d3pm.__init__.__version__"}
[tool.bandit]
skips = ["B101"]
[tool.mypy]
show_error_codes = true
warn_unused_configs = true
no_implicit_optional = true
disallow_untyped_defs = false
ignore_missing_imports = true
disallow_untyped_calls = false
[tool.pytest.ini_options]
addopts = [
"-v",
"--doctest-modules",
"--cov=d3pm",
"--cov-report=xml",
"--strict-markers",
"--strict-config",
"-ra"
]
testpaths = ["src/d3pm"]
[tool.ruff]
indent-width = 2
line-length = 80
[tool.ruff.lint]
extend-select = [
"A", # Builtins shadowing
"ARG", # Unused arguments (New)
"ANN", # Type annotations
"B", # Bugbear (common bugs)
"C4", # List/dict/set comprehensions
"D", # Docstrings
"I", # Isort (import sorting)
"N", # PEP8 Naming conventions
"PL", # Pylint rules
"PTH", # Pathlib usage (New)
"RET", # Return statements (New)
"RUF", # Ruff-specific checks (New)
"S", # Security checks
"SIM", # Code simplification
"TCH", # Type-checking blocks
"UP", # Pyupgrade (modern syntax)
]
ignore = ["S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"**/*_test.py" = ["ANN", "ARG", "C408", "PLR2004", "PLR0913"]
[tool.uv]
upgrade-package = []