forked from leanEthereum/leanSpec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (127 loc) · 3.2 KB
/
Copy pathpyproject.toml
File metadata and controls
147 lines (127 loc) · 3.2 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[build-system]
requires = ["hatchling>=1.25.0,<2"]
build-backend = "hatchling.build"
[project]
name = "lean-spec"
version = "0.0.1"
description = "Lean Ethereum protocol specifications"
readme = "README.md"
authors = [
{ name = "Ethereum Foundation", email = "thomas.coratger@ethereum.org" },
]
keywords = [
"lean",
"beam",
"ethereum",
"specifications",
"protocol",
"consensus",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.12"
dependencies = ["pydantic>=2.12.0,<3", "typing-extensions>=4.4"]
[project.license]
file = "LICENSE"
[project.urls]
Homepage = "https://github.com/leanEthereum/lean-spec"
Source = "https://github.com/leanEthereum/lean-spec"
Issues = "https://github.com/leanEthereum/lean-spec/issues"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build]
exclude = [".*", "tests/", "docs/"]
[tool.hatch.build.targets.wheel]
packages = ["src/lean_spec"]
[tool.ruff]
line-length = 100
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["E", "F", "B", "W", "I", "A", "N", "D", "C"]
fixable = ["I", "B", "E", "F", "W", "D", "C"]
ignore = ["D205", "D203", "D212", "D415", "C901", "A005", "C420"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
force-single-line = false
known-first-party = ["lean_spec"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["D", "F401", "F403"]
[tool.mypy]
python_version = "3.12"
plugins = ["pydantic.mypy"]
strict = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
no_implicit_reexport = true
namespace_packages = false
explicit_package_bases = false
[tool.pytest.ini_options]
minversion = "8.3.3"
testpaths = ["tests"]
python_files = "test_*.py"
pythonpath = ["."]
addopts = [
"-ra",
"--strict-markers",
"--cov=src",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-branch",
# Exclude fixture generation tests from regular test runs
# These are only run via the 'fill' command
"--ignore=tests/consensus",
"--ignore=tests/execution",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"valid_until: marks tests as valid until a specific fork version",
]
[tool.coverage.run]
source = ["src"]
branch = true
[tool.mdformat]
number = true
wrap = 80
[tool.uv]
required-version = ">=0.7.0"
[tool.uv.workspace]
members = ["packages/*"]
[tool.uv.sources]
lean-ethereum-testing = { workspace = true }
[dependency-groups]
test = [
"pytest>=8.3.3,<9",
"pytest-cov>=6.0.0,<7",
"pytest-xdist>=3.6.1,<4",
"hypothesis>=6.138.14",
"lean-ethereum-testing",
]
lint = [
"mypy>=1.17.0,<2",
"ruff>=0.13.2,<1",
"codespell>=2.4.1,<3",
]
docs = [
"mkdocs>=1.6.1,<2",
"mkdocs-material>=9.5.45,<10",
"mkdocstrings[python]>=0.27.0,<1",
"mdformat==0.7.22",
]
dev = [
{include-group = "test"},
{include-group = "lint"},
{include-group = "docs"},
"ipython>=8.31.0,<9",
"ipdb>=0.13",
"tomli-w>=1.0.0",
"build>=1.2.0,<2",
"twine>=5.1.0,<6",
]