-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (53 loc) · 1.35 KB
/
pyproject.toml
File metadata and controls
64 lines (53 loc) · 1.35 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "codedupes"
dynamic = ["version"]
description = "Detect duplicate/unused Python code via AST analysis and multi-model semantic embeddings"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.11"
dependencies = [
"click>=8.1.0",
"sentence-transformers>=5,<6",
"transformers>=4.51,<5",
"torch>=2.5.0",
"numpy>=1.24.0",
"rich>=13.0.0",
]
[project.optional-dependencies]
dev = ["pytest", "ruff"]
gpu = ["deepspeed"]
[project.urls]
Homepage = "https://github.com/pszemraj/codedupes.git"
Repository = "https://github.com/pszemraj/codedupes.git"
[project.scripts]
codedupes = "codedupes.cli:main"
[tool.hatch.build]
dev-mode-dirs = ["src"]
[tool.hatch.build.targets.wheel]
packages = ["src/codedupes"]
[tool.hatch.build.targets.sdist]
include = [
"src/codedupes",
"README.md",
"LICENSE",
"pyproject.toml",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/codedupes/_version.py"
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = ["tests/fixtures/**"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
pythonpath = ["src"]
markers = [
"network: tests that download remote model assets",
"gpu: tests that require CUDA and GPU execution",
]