-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
64 lines (55 loc) · 1.57 KB
/
pyproject.toml
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
[project]
name = "ImageRecognitionFromScratch"
version = "0.1.0"
description = "Neural network for image recognition from scratch using numpy"
readme = "README.md"
requires-python = ">=3.11"
packages = [{ include = "src" }]
dependencies = [
"nptyping>=2.5.0",
"numpy<2.0.0",
"opencv-python-headless>=4.10.0.84",
"scipy>=1.14.1",
"tqdm>=4.67.1",
]
[dependency-groups]
dev = [
"pytest==8.3.3",
"pytest-cov==5.0.0",
"pytest-mock<4.0.0,>=3.14.0",
"mypy>=1.13.0",
"ruff>=0.8.0",
"torch>=2.5.1",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = """
--doctest-modules --junitxml=reports/test-results.xml
--cov=src --cov-report=xml:reports/coverage-summary.xml
--cov-report=html:reports/html_dir
--cov-report=lcov:reports/lcov.info
--cov-report term-missing
"""
testpaths = [
"src/tests",
]
filterwarnings = "ignore::DeprecationWarning"
[tool.coverage.run]
data_file = 'reports/.coverage'
omit = [
# omit anything in a "tests" directory anywhere
"*/tests/*",
]
[tool.poe.tasks]
run.help = "Run program"
run.cmd = "uv run src/main.py"
ruff.help = "Check codebaes using ruff"
ruff.cmd = "ruff check --output-format=concise ."
format.help = "Format code with ruff"
format.cmd = "ruff format ."
types.help = "Statically check types using mypy"
types.cmd = "mypy --cache-fine-grained --check-untyped-defs src"
checks.help = "Execute ruff, format and types tasks in sequence: Run ruff checks, formats and mypy"
checks.sequence = ["ruff", "format", "types"]
test.help = "Run tests using pytest. Results are found in reports/"
test.cmd = "pytest"