-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (70 loc) · 1.76 KB
/
pyproject.toml
File metadata and controls
81 lines (70 loc) · 1.76 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
[project]
name = "keeloq"
version = "0.1.0"
description = "2026 modernization of the KeeLoq algebraic/SAT cryptanalysis pipeline"
readme = "README.md"
requires-python = ">=3.12"
authors = [{name = "Cahlen Humphreys"}]
license = {text = "MIT"}
classifiers = [
"Development Status :: 3 - Alpha",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"torch>=2.5",
"pycryptosat>=5.11",
"typer[all]>=0.12",
"pydantic>=2.7",
"structlog>=24.1",
"numpy>=1.26",
]
[project.scripts]
keeloq = "keeloq.cli:app"
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-xdist>=3.5",
"pytest-timeout>=2.3",
"pytest-cov>=5.0",
"hypothesis>=6.100",
"ruff>=0.4",
"mypy>=1.10",
]
plots = [
"matplotlib>=3.8",
]
[build-system]
requires = ["hatchling>=1.24"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/keeloq"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --strict-markers --timeout=120"
markers = [
"gpu: requires CUDA and an NVIDIA GPU",
"legacy: requires docker with the python:2.7 image (legacy runtime; python2 is EOL)",
"solver_kissat: requires the kissat binary on PATH",
"solver_minisat: requires the minisat binary on PATH",
"slow: end-to-end attack tests; excluded from -m 'not slow' runs",
]
filterwarnings = [
"error",
]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "SIM", "RUF"]
ignore = ["E501"]
[tool.mypy]
python_version = "3.12"
strict = true
files = ["src/keeloq"]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "pycryptosat"
ignore_missing_imports = true