-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (118 loc) · 3.06 KB
/
pyproject.toml
File metadata and controls
132 lines (118 loc) · 3.06 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[project]
name = "tensorized_filters"
version = "1.0.0"
description = "Experiments from the Hazan Lab @ Princeton for tensorized filters"
readme = "README.md"
requires-python = ">=3.10, <3.13"
license = {file = "LICENSE"}
authors = [
{ name = "Windsor Nguyen", email = "mn4560@princeton.edu" },
{ name = "Isabel Liu", email = "isabel.liu@princeton.edu" },
]
maintainers = [
{ name = "Windsor Nguyen", email = "mn4560@princeton.edu" },
]
keywords = [
"pytorch",
"state space model",
"spectral filtering",
"deep learning",
"machine learning",
"dynamical systems",
"language modeling",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache License",
"Operating System :: Unix"
]
dependencies = [
"packaging==24.1",
"wheel==0.44.0",
"ruff>=0.7.3",
"numpy==1.26.4",
"ninja==1.11.1.1",
"torch>=2.5.1",
"triton>=3.0.0",
"einops>=0.8.0",
"liger-kernel>=0.2.1",
"tiktoken>=0.7.0",
"transformers==4.44.0",
"datasets==2.20.0",
"safetensors==0.4.4",
"psutil==6.0.0",
"matplotlib==3.9.2",
"seaborn>=0.13.2",
"scipy>=1.14.1",
"python-dotenv>=1.0.1",
"colorama>=0.4.6",
"pytest>=8.3.3",
"ipykernel>=6.29.5",
]
[tool.setuptools]
packages = ["tensorized_filters"]
# ===============================
# Project URLs
# ===============================
[project.urls]
Homepage = "https://www.minregret.com/"
Repository = "https://github.com/hazan-lab/tensorized-filters"
# ===============================
# Ruff Configuration
# ===============================
[tool.ruff]
# Exclude commonly ignored directories from linting
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
# General Ruff settings
line-length = 119
indent-width = 4
target-version = "py311"
# -------------------------------
# Ruff Linting Rules
# -------------------------------
[tool.ruff.lint]
# Enable specific linting rules
select = ["E4", "E7", "E9", "F", "B", "Q"]
ignore = []
# Define fixable and unfixable rules
fixable = ["ALL"]
unfixable = []
# -------------------------------
# Ruff Flake8-Quotes Settings
# -------------------------------
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double" # Enforce double quotes for docstrings
inline-quotes = "double" # Enforce double quotes for inline strings
# -------------------------------
# Ruff Formatting Settings
# -------------------------------
[tool.ruff.format]
quote-style = "double" # Use double quotes for auto-formatting
indent-style = "space" # Indent with spaces instead of tabs
skip-magic-trailing-comma = false # Respect magic trailing commas
line-ending = "auto" # Automatically detect line endings
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"