lambda-calculus 3.1.0__tar.gz → 3.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lambda_calculus-3.1.2/.gitignore +226 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/.readthedocs.yaml +2 -2
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/PKG-INFO +4 -4
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/README.md +1 -1
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/conf.py +6 -4
- lambda_calculus-3.1.2/docs/requirements.txt +3 -0
- lambda_calculus-3.1.2/pyproject.toml +140 -0
- lambda_calculus-3.1.2/src/lambda_calculus/__init__.py +8 -0
- lambda_calculus-3.1.2/src/lambda_calculus/_version.py +24 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/errors.py +3 -6
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/terms/__init__.py +54 -47
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/terms/abc.py +2 -2
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/terms/arithmetic.py +17 -63
- lambda_calculus-3.1.2/src/lambda_calculus/terms/combinators.py +59 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/terms/logic.py +7 -18
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/terms/pairs.py +7 -27
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/visitors/__init__.py +24 -23
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/visitors/normalisation.py +19 -17
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/visitors/substitution/__init__.py +20 -23
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/visitors/substitution/checked.py +13 -23
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/visitors/substitution/renaming.py +42 -36
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/visitors/substitution/unsafe.py +12 -13
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/visitors/walking.py +5 -9
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/terms/__init__.py +58 -41
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/terms/test_abc.py +2 -3
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/terms/test_arithmetic.py +25 -42
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/terms/test_combinators.py +10 -16
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/terms/test_logic.py +16 -25
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/terms/test_pairs.py +10 -25
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/test_errors.py +4 -12
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/test_readme.py +14 -13
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/visitors/substitution/test_checked.py +13 -24
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/visitors/substitution/test_renaming.py +42 -91
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/visitors/test_normalisation.py +23 -55
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/visitors/test_walking.py +8 -20
- lambda_calculus-3.1.0/.flake8 +0 -3
- lambda_calculus-3.1.0/.gitignore +0 -164
- lambda_calculus-3.1.0/docs/requirements.txt +0 -3
- lambda_calculus-3.1.0/pyproject.toml +0 -118
- lambda_calculus-3.1.0/src/lambda_calculus/__init__.py +0 -17
- lambda_calculus-3.1.0/src/lambda_calculus/terms/combinators.py +0 -83
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/LICENSE +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/Makefile +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/errors.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/terms/abc.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/terms/arithmetic.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/terms/combinators.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/terms/logic.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/terms/pairs.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/terms.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/visitors/normalisation.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/visitors/substitution/checked.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/visitors/substitution/renaming.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/visitors/substitution/unsafe.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/visitors/substitution.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/visitors/walking.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api/visitors.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/api.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/index.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/docs/installation.rst +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/src/lambda_calculus/py.typed +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/__init__.py +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/visitors/__init__.py +0 -0
- {lambda_calculus-3.1.0 → lambda_calculus-3.1.2}/tests/visitors/substitution/__init__.py +0 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
*.lcov
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
# .python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
# Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# uv
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
# uv.lock
|
|
103
|
+
|
|
104
|
+
# poetry
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
106
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
107
|
+
# commonly ignored for libraries.
|
|
108
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
109
|
+
# poetry.lock
|
|
110
|
+
# poetry.toml
|
|
111
|
+
|
|
112
|
+
# pdm
|
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
114
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
115
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
116
|
+
# pdm.lock
|
|
117
|
+
# pdm.toml
|
|
118
|
+
.pdm-python
|
|
119
|
+
.pdm-build/
|
|
120
|
+
|
|
121
|
+
# pixi
|
|
122
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
123
|
+
# pixi.lock
|
|
124
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
125
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
126
|
+
.pixi/*
|
|
127
|
+
!.pixi/config.toml
|
|
128
|
+
|
|
129
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
130
|
+
__pypackages__/
|
|
131
|
+
|
|
132
|
+
# Celery stuff
|
|
133
|
+
celerybeat-schedule*
|
|
134
|
+
celerybeat.pid
|
|
135
|
+
|
|
136
|
+
# Redis
|
|
137
|
+
*.rdb
|
|
138
|
+
*.aof
|
|
139
|
+
*.pid
|
|
140
|
+
|
|
141
|
+
# RabbitMQ
|
|
142
|
+
mnesia/
|
|
143
|
+
rabbitmq/
|
|
144
|
+
rabbitmq-data/
|
|
145
|
+
|
|
146
|
+
# ActiveMQ
|
|
147
|
+
activemq-data/
|
|
148
|
+
|
|
149
|
+
# SageMath parsed files
|
|
150
|
+
*.sage.py
|
|
151
|
+
|
|
152
|
+
# Environments
|
|
153
|
+
.env
|
|
154
|
+
.envrc
|
|
155
|
+
.venv
|
|
156
|
+
.direnv
|
|
157
|
+
env/
|
|
158
|
+
venv/
|
|
159
|
+
ENV/
|
|
160
|
+
env.bak/
|
|
161
|
+
venv.bak/
|
|
162
|
+
|
|
163
|
+
# Spyder project settings
|
|
164
|
+
.spyderproject
|
|
165
|
+
.spyproject
|
|
166
|
+
|
|
167
|
+
# Rope project settings
|
|
168
|
+
.ropeproject
|
|
169
|
+
|
|
170
|
+
# mkdocs/Zensical documentation
|
|
171
|
+
/site
|
|
172
|
+
|
|
173
|
+
# mypy
|
|
174
|
+
.mypy_cache/
|
|
175
|
+
.dmypy.json
|
|
176
|
+
dmypy.json
|
|
177
|
+
.mypy_reports/
|
|
178
|
+
|
|
179
|
+
# Pyre type checker
|
|
180
|
+
.pyre/
|
|
181
|
+
|
|
182
|
+
# pytype static type analyzer
|
|
183
|
+
.pytype/
|
|
184
|
+
|
|
185
|
+
# Cython debug symbols
|
|
186
|
+
cython_debug/
|
|
187
|
+
|
|
188
|
+
# PyCharm
|
|
189
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
190
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
191
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
192
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
193
|
+
# .idea/
|
|
194
|
+
|
|
195
|
+
# Abstra
|
|
196
|
+
# Abstra is an AI-powered process automation framework.
|
|
197
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
198
|
+
# Learn more at https://abstra.io/docs
|
|
199
|
+
.abstra/
|
|
200
|
+
|
|
201
|
+
# Visual Studio Code
|
|
202
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
|
|
203
|
+
# can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
204
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer, you
|
|
205
|
+
# could uncomment the following to ignore the entire vscode folder
|
|
206
|
+
.vscode/
|
|
207
|
+
# Temporary file for partial code execution
|
|
208
|
+
tempCodeRunnerFile.py
|
|
209
|
+
|
|
210
|
+
# Ruff stuff:
|
|
211
|
+
.ruff_cache/
|
|
212
|
+
.ruff_defaults.toml
|
|
213
|
+
|
|
214
|
+
# PyPI configuration file
|
|
215
|
+
.pypirc
|
|
216
|
+
|
|
217
|
+
# Marimo
|
|
218
|
+
marimo/_static/
|
|
219
|
+
marimo/_lsp/
|
|
220
|
+
__marimo__/
|
|
221
|
+
|
|
222
|
+
# Streamlit
|
|
223
|
+
.streamlit/secrets.toml
|
|
224
|
+
|
|
225
|
+
# hatch-vcs
|
|
226
|
+
src/*/_version.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: lambda_calculus
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.2
|
|
4
4
|
Summary: Implementation of the Lambda calculus
|
|
5
5
|
Project-URL: Repository, https://github.com/Deric-W/lambda_calculus
|
|
6
6
|
Project-URL: Documentation, http://lambda-calculus.readthedocs.io/
|
|
@@ -14,13 +14,13 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
14
14
|
Classifier: Topic :: Education
|
|
15
15
|
Classifier: Topic :: Utilities
|
|
16
16
|
Classifier: Typing :: Typed
|
|
17
|
-
Requires-Python: >=3.
|
|
17
|
+
Requires-Python: >=3.11
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
|
|
20
20
|
# lambda_calculus
|
|
21
21
|
|
|
22
22
|
[](https://github.com/pypa/hatch)
|
|
23
|
-

|
|
24
24
|
[](https://codecov.io/gh/Deric-W/lambda_calculus)
|
|
25
25
|
[](https://lambda-calculus.readthedocs.io/en/stable/?badge=stable)
|
|
26
26
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# lambda_calculus
|
|
2
2
|
|
|
3
3
|
[](https://github.com/pypa/hatch)
|
|
4
|
-

|
|
5
5
|
[](https://codecov.io/gh/Deric-W/lambda_calculus)
|
|
6
6
|
[](https://lambda-calculus.readthedocs.io/en/stable/?badge=stable)
|
|
7
7
|
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
|
|
3
1
|
"""Sphinx configuration"""
|
|
4
2
|
|
|
5
|
-
import sys
|
|
6
3
|
import os.path
|
|
4
|
+
import sys
|
|
5
|
+
|
|
7
6
|
from sphinx_pyproject import SphinxConfig
|
|
8
7
|
|
|
8
|
+
from lambda_calculus import __version__ as version
|
|
9
9
|
|
|
10
10
|
sys.path.append(os.path.abspath(".."))
|
|
11
11
|
|
|
12
|
-
config = SphinxConfig(
|
|
12
|
+
config = SphinxConfig(
|
|
13
|
+
"../pyproject.toml", globalns=globals(), config_overrides={"version": version}
|
|
14
|
+
)
|
|
13
15
|
|
|
14
16
|
intersphinx_mapping = {
|
|
15
17
|
"python": ("https://docs.python.org/3/", None),
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "lambda_calculus"
|
|
3
|
+
description = "Implementation of the Lambda calculus"
|
|
4
|
+
requires-python = ">=3.11"
|
|
5
|
+
keywords = []
|
|
6
|
+
classifiers = [
|
|
7
|
+
"Intended Audience :: Education",
|
|
8
|
+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
9
|
+
"Operating System :: OS Independent",
|
|
10
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
11
|
+
"Topic :: Education",
|
|
12
|
+
"Topic :: Utilities",
|
|
13
|
+
"Typing :: Typed"
|
|
14
|
+
]
|
|
15
|
+
dynamic = ["version"]
|
|
16
|
+
|
|
17
|
+
[project.readme]
|
|
18
|
+
file = "README.md"
|
|
19
|
+
content-type = "text/markdown"
|
|
20
|
+
|
|
21
|
+
[[project.authors]]
|
|
22
|
+
name = "Eric Niklas Wolf"
|
|
23
|
+
email = "eric_niklas.wolf@mailbox.tu-dresden.de"
|
|
24
|
+
|
|
25
|
+
[project.urls]
|
|
26
|
+
Repository = "https://github.com/Deric-W/lambda_calculus"
|
|
27
|
+
Documentation = "http://lambda-calculus.readthedocs.io/"
|
|
28
|
+
Bugtracker = "https://github.com/Deric-W/lambda_calculus/issues"
|
|
29
|
+
|
|
30
|
+
[build-system]
|
|
31
|
+
requires = ["hatchling", "hatch-vcs"]
|
|
32
|
+
build-backend = "hatchling.build"
|
|
33
|
+
|
|
34
|
+
[tool.hatch.version]
|
|
35
|
+
source = "vcs"
|
|
36
|
+
|
|
37
|
+
[tool.hatch.build.hooks.vcs]
|
|
38
|
+
version-file = "src/lambda_calculus/_version.py"
|
|
39
|
+
|
|
40
|
+
[tool.hatch.envs.default]
|
|
41
|
+
installer = "pip"
|
|
42
|
+
|
|
43
|
+
[tool.hatch.envs.hatch-test]
|
|
44
|
+
installer = "pip"
|
|
45
|
+
|
|
46
|
+
[[tool.hatch.envs.hatch-test.matrix]]
|
|
47
|
+
python = ["3.11", "3.12", "3.13", "3.14", "3.15"]
|
|
48
|
+
|
|
49
|
+
[tool.hatch.envs.hatch-check-fmt]
|
|
50
|
+
installer = "pip"
|
|
51
|
+
config-path = ".ruff_defaults.toml"
|
|
52
|
+
|
|
53
|
+
[tool.hatch.envs.hatch-check-code]
|
|
54
|
+
installer = "pip"
|
|
55
|
+
config-path = ".ruff_defaults.toml"
|
|
56
|
+
|
|
57
|
+
[tool.hatch.envs.hatch-check-types]
|
|
58
|
+
installer = "pip"
|
|
59
|
+
# do not override inherited test dependencies
|
|
60
|
+
extra-dependencies = [
|
|
61
|
+
"mypy ~= 2.4"
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
[tool.hatch.envs.hatch-check-types.scripts]
|
|
65
|
+
check = "mypy -p lambda_calculus --cache-dir \"{root}/.mypy_cache\" --pretty {args}"
|
|
66
|
+
check-summarize = "mypy -p lambda_calculus --cache-dir \"{root}/.mypy_cache\" {args}"
|
|
67
|
+
coverage = "mypy -p lambda_calculus --cache-dir \"{root}/.mypy_cache\" --linecoverage-report \"{root}/.mypy_reports\" {args}"
|
|
68
|
+
|
|
69
|
+
[tool.hatch.envs.docs]
|
|
70
|
+
python = ">=3.12"
|
|
71
|
+
dependencies = [
|
|
72
|
+
"sphinx ~= 9.1.0",
|
|
73
|
+
"sphinx-pyproject ~= 0.3.0",
|
|
74
|
+
"sphinx-rtd-theme ~= 3.1.0"
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[tool.hatch.envs.docs.scripts]
|
|
78
|
+
build = "sphinx-build {args} docs docs/_build"
|
|
79
|
+
|
|
80
|
+
[tool.hatch.build.targets.sdist]
|
|
81
|
+
exclude = ["/.github"]
|
|
82
|
+
|
|
83
|
+
[tool.pytest.ini_options]
|
|
84
|
+
minversion = "6.0"
|
|
85
|
+
python_files = "test_*.py *_test.py __init__.py"
|
|
86
|
+
|
|
87
|
+
[tool.mypy]
|
|
88
|
+
disallow_any_unimported = true
|
|
89
|
+
disallow_any_generics = true
|
|
90
|
+
disallow_untyped_defs = true
|
|
91
|
+
no_implicit_optional = true
|
|
92
|
+
strict_optional = true
|
|
93
|
+
warn_redundant_casts = true
|
|
94
|
+
warn_unused_ignores = true
|
|
95
|
+
warn_return_any = true
|
|
96
|
+
warn_unreachable = true
|
|
97
|
+
|
|
98
|
+
[tool.ruff]
|
|
99
|
+
extend = ".ruff_defaults.toml"
|
|
100
|
+
line-length = 100
|
|
101
|
+
|
|
102
|
+
[tool.ruff.lint]
|
|
103
|
+
ignore = [
|
|
104
|
+
"TID252" # relative imports
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
[tool.ruff.lint.extend-per-file-ignores]
|
|
108
|
+
"src/*" = [
|
|
109
|
+
"TC001", # sphinx autodoc does not handle typing.TYPE_CHECKING
|
|
110
|
+
"TC003" # sphinx autodoc does not handle typing.TYPE_CHECKING
|
|
111
|
+
]
|
|
112
|
+
"tests/*" = [
|
|
113
|
+
"PT009", # unittest-style assert
|
|
114
|
+
"PT027" # unittest-style assertRaises
|
|
115
|
+
]
|
|
116
|
+
"docs/*" = [
|
|
117
|
+
"INP001" # implicit namespace package
|
|
118
|
+
]
|
|
119
|
+
|
|
120
|
+
[tool.coverage.run]
|
|
121
|
+
source_pkgs = ["lambda_calculus"]
|
|
122
|
+
branch = true
|
|
123
|
+
parallel = true
|
|
124
|
+
|
|
125
|
+
[tool.sphinx-pyproject]
|
|
126
|
+
project = "lambda_calculus"
|
|
127
|
+
copyright = "2022 Eric Wolf"
|
|
128
|
+
html_theme = "sphinx_rtd_theme"
|
|
129
|
+
extensions = [
|
|
130
|
+
"sphinx.ext.intersphinx",
|
|
131
|
+
"sphinx.ext.autodoc",
|
|
132
|
+
"sphinx.ext.viewcode"
|
|
133
|
+
]
|
|
134
|
+
autodoc_typehints_format = "short"
|
|
135
|
+
autodoc_warningiserror = true
|
|
136
|
+
|
|
137
|
+
[tool.sphinx-pyproject.autodoc_default_options]
|
|
138
|
+
show-inheritance = true
|
|
139
|
+
member-order = "bysource"
|
|
140
|
+
ignore-module-all = true
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"""Implementation of the Lambda calculus"""
|
|
2
|
+
|
|
3
|
+
from ._version import version as __version__ # noqa: F401
|
|
4
|
+
from .terms import Abstraction, Application, Variable
|
|
5
|
+
|
|
6
|
+
__author__ = "Eric Niklas Wolf"
|
|
7
|
+
__email__ = "eric_niklas.wolf@mailbox.tu-dresden.de"
|
|
8
|
+
__all__ = ("Abstraction", "Application", "Variable", "errors", "terms", "visitors")
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# file generated by vcs-versioning
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"__version__",
|
|
7
|
+
"__version_tuple__",
|
|
8
|
+
"version",
|
|
9
|
+
"version_tuple",
|
|
10
|
+
"__commit_id__",
|
|
11
|
+
"commit_id",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
version: str
|
|
15
|
+
__version__: str
|
|
16
|
+
__version_tuple__: tuple[int | str, ...]
|
|
17
|
+
version_tuple: tuple[int | str, ...]
|
|
18
|
+
commit_id: str | None
|
|
19
|
+
__commit_id__: str | None
|
|
20
|
+
|
|
21
|
+
__version__ = version = '3.1.2'
|
|
22
|
+
__version_tuple__ = version_tuple = (3, 1, 2)
|
|
23
|
+
|
|
24
|
+
__commit_id__ = commit_id = None
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
#!/usr/bin/python3
|
|
2
|
-
|
|
3
1
|
"""Errors raised by Term operations"""
|
|
4
2
|
|
|
5
3
|
from __future__ import annotations
|
|
4
|
+
|
|
6
5
|
from collections.abc import Collection
|
|
7
|
-
from typing import
|
|
6
|
+
from typing import Generic, TypeVar
|
|
8
7
|
|
|
9
|
-
__all__ = (
|
|
10
|
-
"CollisionError",
|
|
11
|
-
)
|
|
8
|
+
__all__ = ("CollisionError",)
|
|
12
9
|
|
|
13
10
|
V = TypeVar("V")
|
|
14
11
|
|