-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (83 loc) · 1.7 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (83 loc) · 1.7 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
[project]
name = "gate_learner"
version = "0.1.0"
description = "A multilayer perceptron engine to learn N-input logic gates."
readme = "README.md"
authors = [
{ name = "Dzulkifli Anwar", email = "dzulkiflianwar2@gmail.com" }
]
requires-python = ">=3.12"
dependencies = [
"typer>=0.26.7",
]
[project.optional-dependencies]
visualise = [
"matplotlib>=3.11.0",
]
[project.scripts]
gate-learner = "gate_learner.main:app"
[build-system]
requires = ["uv_build>=0.11.24,<0.12.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.7.6",
"mkdocstrings[python]>=1.0.4",
"pyperf>=2.10.0",
"pytest>=9.1.1",
"pytest-benchmark>=5.2.3",
"pytest-cov>=7.1.0",
"pytest-html>=4.2.0",
"ruff>=0.15.19",
]
[tool.ruff]
target-version = "py312"
line-length = 120
[tool.ruff.lint]
select = [
"D",
"I",
"UP",
"E",
"W",
"F",
"N",
"B",
"C4",
"RUF",
]
ignore = [
"D203",
"D213",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
addopts = """
--doctest-modules
--cov=gate_learner
--cov-report=json
--benchmark-json=benchmark_results.json
--html=benchmark_report.html
--self-contained-html
"""
[tool.coverage.run]
source = ["gate_learner"]
omit = [
"tests/*",
"benches/*",
"src/gate_learner/main.py",
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]