Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (116 loc) · 3.38 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (116 loc) · 3.38 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
[project]
name = "lambda_calculus"
description = "Implementation of the Lambda calculus"
requires-python = ">=3.11"
keywords = []
classifiers = [
"Intended Audience :: Education",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Education",
"Topic :: Utilities",
"Typing :: Typed"
]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[[project.authors]]
name = "Eric Niklas Wolf"
email = "eric_niklas.wolf@mailbox.tu-dresden.de"
[project.urls]
Repository = "https://github.com/Deric-W/lambda_calculus"
Documentation = "http://lambda-calculus.readthedocs.io/"
Bugtracker = "https://github.com/Deric-W/lambda_calculus/issues"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/lambda_calculus/_version.py"
[tool.hatch.envs.default]
installer = "pip"
[tool.hatch.envs.hatch-test]
installer = "pip"
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.11", "3.12", "3.13", "3.14", "3.15"]
[tool.hatch.envs.hatch-check-fmt]
installer = "pip"
config-path = ".ruff_defaults.toml"
[tool.hatch.envs.hatch-check-code]
installer = "pip"
config-path = ".ruff_defaults.toml"
[tool.hatch.envs.hatch-check-types]
installer = "pip"
# do not override inherited test dependencies
extra-dependencies = [
"mypy ~= 2.4"
]
[tool.hatch.envs.hatch-check-types.scripts]
check = "mypy -p lambda_calculus --cache-dir \"{root}/.mypy_cache\" --pretty {args}"
check-summarize = "mypy -p lambda_calculus --cache-dir \"{root}/.mypy_cache\" {args}"
coverage = "mypy -p lambda_calculus --cache-dir \"{root}/.mypy_cache\" --linecoverage-report \"{root}/.mypy_reports\" {args}"
[tool.hatch.envs.docs]
python = ">=3.12"
dependencies = [
"sphinx ~= 9.1.0",
"sphinx-pyproject ~= 0.3.0",
"sphinx-rtd-theme ~= 3.1.0"
]
[tool.hatch.envs.docs.scripts]
build = "sphinx-build {args} docs docs/_build"
[tool.hatch.build.targets.sdist]
exclude = ["/.github"]
[tool.pytest.ini_options]
minversion = "6.0"
python_files = "test_*.py *_test.py __init__.py"
[tool.mypy]
disallow_any_unimported = true
disallow_any_generics = true
disallow_untyped_defs = true
no_implicit_optional = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
[tool.ruff]
extend = ".ruff_defaults.toml"
line-length = 100
[tool.ruff.lint]
ignore = [
"TID252" # relative imports
]
[tool.ruff.lint.extend-per-file-ignores]
"src/*" = [
"TC001", # sphinx autodoc does not handle typing.TYPE_CHECKING
"TC003" # sphinx autodoc does not handle typing.TYPE_CHECKING
]
"tests/*" = [
"PT009", # unittest-style assert
"PT027" # unittest-style assertRaises
]
"docs/*" = [
"INP001" # implicit namespace package
]
[tool.coverage.run]
source_pkgs = ["lambda_calculus"]
branch = true
parallel = true
[tool.sphinx-pyproject]
project = "lambda_calculus"
copyright = "2022 Eric Wolf"
html_theme = "sphinx_rtd_theme"
extensions = [
"sphinx.ext.intersphinx",
"sphinx.ext.autodoc",
"sphinx.ext.viewcode"
]
autodoc_typehints_format = "short"
autodoc_warningiserror = true
[tool.sphinx-pyproject.autodoc_default_options]
show-inheritance = true
member-order = "bysource"
ignore-module-all = true