-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (64 loc) · 1.58 KB
/
pyproject.toml
File metadata and controls
74 lines (64 loc) · 1.58 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "py-blockchain-tutorial"
version = "0.1.0"
description = "A lightweight Python-based blockchain tutorial with Flask and a minimal HTMX/Tailwind UI"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "Maintainer" }]
keywords = ["blockchain", "tutorial", "flask", "pow", "consensus"]
# Top-level runtime deps only; transitive deps are resolved by the installer
dependencies = [
"flask==3.1.1",
"fastapi>=0.115.6",
"starlette>=0.47.2",
"uvicorn[standard]==0.30.6",
"jinja2==3.1.6",
"requests==2.32.4",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3",
"pytest-cov>=5.0",
"hypothesis>=6.106",
"mypy>=1.11",
"ruff>=0.6.9",
"black>=24.10.0",
"isort>=5.13.2",
"pre-commit>=3.8.0",
"bandit>=1.7.9",
"pip-audit>=2.7.1",
"types-requests>=2.32.0",
"httpx>=0.27",
]
[project.scripts]
blockchain-app = "app.main:main"
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "B"]
ignore = ["E203", "E501", "B008"]
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
addopts = "-q"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
strict_optional = true
check_untyped_defs = true
ignore_missing_imports = true
exclude = ["venv", ".venv", "build", "dist"]