-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (110 loc) · 2.94 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (110 loc) · 2.94 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
[project]
name = "automata-lib"
version = "9.2.0"
description = "A Python library for simulating finite automata, pushdown automata, and Turing machines"
readme = "README.md"
requires-python = ">=3.10"
keywords = [
"automata",
"finite",
"non-deterministic",
"pushdown",
"turing",
"machine",
"state",
]
license = "MIT"
license-files = ["LICENSE.txt"]
authors = [{ name = "Caleb Evans", email = "caleb@calebevans.me" }]
maintainers = [
{ name = "Caleb Evans", email = "caleb@calebevans.me" },
{ name = "Eliot W. Robson", email = "eliot.robson24@gmail.com" },
]
dependencies = [
"networkx>=2.6.2",
"frozendict>=2.3.4",
"typing-extensions>=4.5.0",
"cached_method>=0.1.0",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Mathematics",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
]
# Per https://docs.astral.sh/uv/concepts/projects/dependencies/#optional-dependencies
[project.optional-dependencies]
visual = ["coloraide>=1.8.2", "manim>=0.19.0", "pygraphviz>=1.10"]
[project.urls]
homepage = "https://github.com/caleb531/automata"
documentation = "https://caleb531.github.io/automata/"
repository = "https://github.com/caleb531/automata"
changelog = "https://github.com/caleb531/automata/releases"
[build-system]
requires = ["uv_build>=0.9.6,<0.10.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "automata"
module-root = ""
[dependency-groups]
dev = [
"check-wheel-contents; python_version < '3.14'",
"coloraide>=1.8.2",
"coverage==7.4.1",
"mypy==1.8.0",
"mypy-extensions==1.0.0",
"parameterized>=0.9.0",
"pygraphviz>=1.10",
"pytest>=8.4.2",
"pytest-cov>=5.0.0",
"ruff==0.11.2",
"types-frozendict==2.0.9",
]
docs = [
"mkdocs==1.6.1",
"mkdocs-material==9.5.50",
"mkdocs-macros-plugin==1.3.7",
"mkdocstrings==0.27.0",
"mkdocstrings-python==1.13.0",
]
[tool.uv]
default-groups = ["dev"]
[tool.mypy]
exclude = ["build"]
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ["networkx.*", "pygraphviz.*", "cached_method.*", "manim.*"]
ignore_missing_imports = true
[tool.ruff]
include = ["**/*.py"]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# isort
"I",
# Perflint
"PERF",
]
# Configuration for coverage.py (https://pypi.python.org/pypi/coverage)
[tool.coverage.run]
# Enable branch coverage
branch = true
# Only check coverage for source files
include = ["automata/*/*.py"]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
"pragma: no cover",
# Ignore non-runnable code
"if __name__ == .__main__.:",
"pass",
]