-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathpyproject.toml
93 lines (83 loc) · 2.29 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "Penman"
dynamic = ["version"]
description = "PENMAN notation for graphs (e.g., AMR)"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
authors = [
{name = "Michael Wayne Goodman", email = "[email protected]"}
]
keywords = ["nlp", "semantics", "amr"]
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
'Topic :: Utilities'
]
[project.scripts]
penman = "penman.__main__:main"
[project.urls]
Homepage = "https://github.com/goodmami/penman"
Documentation = "https://penman.readthedocs.io/"
Changelog = "https://github.com/goodmami/penman/blob/main/CHANGELOG.md"
Source = "https://github.com/goodmami/penman"
[tool.hatch.version]
path = "penman/__about__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
]
[tool.hatch.envs.dev]
dependencies = [
"pytest",
"mypy",
"ruff",
]
[tool.hatch.envs.dev.scripts]
test = "pytest {args:--doctest-glob=*.rst --doctest-modules --ignore-glob=penman/interface.py}"
lint = "ruff check {args} penman/"
typecheck = "mypy penman/"
format = "ruff format {args} penman/"
[tool.hatch.envs.docs]
dependencies = [
"sphinx",
"furo",
"pygments",
"sphinx-copybutton",
]
[tool.hatch.envs.docs.scripts]
build = "make -C docs html"
clean = "make -C docs clean"
[tool.ruff]
target-version = "py38"
line-length = 79
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C90", # McCabe cyclomatic complexity
"E", # pycodestyle errors
"I", # isort
"F", # Pyflakes
"N", # PEP-8 naming
"W", # pycodestyle warnings
]
isort.combine-as-imports = true
isort.force-wrap-aliases = true
[tool.ruff.format]
quote-style = "single"