-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (88 loc) · 2.05 KB
/
pyproject.toml
File metadata and controls
99 lines (88 loc) · 2.05 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "head-explain"
version = "0.1.0"
description = "Interpret transformer attention heads end-to-end with automated explanation"
authors = [{ name = "MrtinoRG", email = "martinriosgarcia@gmail.com" }]
dependencies = [
"torch>=2.0.0",
"transformer-lens>=1.0.0",
"transformers>=4.30.0",
"datasets>=2.14.0",
"pandas>=2.0.0",
"numpy>=1.24.0",
"pyarrow>=12.0.0",
"scikit-learn>=1.3.0",
"hdbscan>=0.8.33",
"sentence-transformers>=2.2.0",
"openai>=1.0.0",
"tqdm>=4.65.0",
"jinja2>=3.1.0",
"matplotlib>=3.7.0",
"seaborn>=0.12.0",
]
requires-python = ">=3.9"
readme = "README.md"
license = { text = "MIT license" }
[project.scripts]
head-explain = "head_explain.cli:main"
[dependency-groups]
dev = [
"pytest>=7.2.0",
"pytest-cov>=4.0.0",
"ruff>=0.9.2",
"deptry>=0.22.0",
"mypy>=0.991",
"pre-commit>=2.20.0",
"tox-uv>=1.11.3",
"mkdocs>=1.4.2",
"mkdocs-material>=8.5.10",
"mkdocstrings[python]>=0.19.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.mypy]
files = ["src/head_explain"]
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
warn_unused_ignores = true
show_error_codes = true
[tool.coverage.run]
branch = true
source = ["src"]
[tool.coverage.report]
skip_empty = true
[tool.ruff]
target-version = "py39"
line-length = 120
fix = true
[tool.ruff.lint]
select = [
"YTT", # flake8-2020
"S", # flake8-bandit
"B", # flake8-bugbear
"A", # flake8-builtins
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"SIM", # flake8-simplify
"I", # isort
"C90", # mccabe
"E", "W", # pycodestyle
"F", # pyflakes
"PGH", # pygrep-hooks
"UP", # pyupgrade
"RUF", # ruff
"TRY", # tryceratops
]
ignore = [
"E501", # LineTooLong
"E731", # DoNotAssignLambda
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
[tool.deptry]