-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
102 lines (84 loc) · 2.62 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"
[project]
name = "liblet"
description = "A teaching aid library for formal languages and compiler courses."
readme = "README.md"
requires-python = ">=3.10"
authors = [{ name = "Massimo Santini", email = "[email protected]" }]
keywords = [
"automata",
"formal",
"grammar",
"graph",
"language",
"parser",
"parsing",
"tree"
]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: IPython",
"Framework :: Jupyter",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.10",
"Topic :: Education",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Compilers"
]
dependencies = [
"antlr4-python3-runtime==4.13.1",
"graphviz",
"ipywidgets",
"jupyter",
"svgutils",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://liblet.readthedocs.io/"
"Source code" = "https://github.com/let-unimi/liblet"
Changelog = "https://github.com/let-unimi/liblet/blob/master/CHANGELOG.txt"
"Bug Tracker" = "https://github.com/let-unimi/liblet/issues"
[project.scripts]
install_antlrjar = "scripts:install_antlrjar"
[project.optional-dependencies]
docs = ["sphinx", "Pallets-Sphinx-Themes", "pystache"]
[tool.hatch.version]
source = "regex_commit"
path = "src/liblet/__init__.py"
[tool.hatch.build]
sources = ["src"]
include = ["src/liblet/*.py", "src/*.py"]
[tool.hatch.build.targets.sdist]
sources = ["."]
include = ["src/", "docs/"]
[tool.ruff]
indent-width = 2
[tool.ruff.lint]
ignore = ["E501", "E731", "EM101", "EM102", "FBT002", "INP001", "N802", "N803", "N806", "SLF001", "TRY003"]
[tool.ruff.lint.extend-per-file-ignores]
"src/tests/**" = ["ARG001", "E501", "F841", "N802", "PT009", "PT027", "RUF001"]
[tool.ruff.format]
quote-style = "single"
[tool.hatch.envs.devel]
dependencies = ["gitchangelog", "pyupgrade", "pystache"]
[tool.hatch.envs.docs]
features = ["docs"]
[tool.hatch.envs.tests]
dependencies = ["coverage", "codecov"]
[tool.hatch.envs.docs.scripts]
build = ["./bin/docs"]
[tool.hatch.envs.devel.scripts]
changelog = ["gitchangelog"]
[tool.hatch.envs.tests.scripts]
run = [
"coverage run --branch --source liblet --omit '*/__init__.py','*/display.py','*/llvm.py' -m unittest discover discover -s src/tests -p '*_test.py'",
"coverage lcov -o ./coverage/lcov.info"
]
reports = ["coverage html -d ./build/coverage", "coverage xml"]
[[tool.hatch.envs.tests.matrix]]
python = ["3.10", "3.11", "3.12"]