-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (76 loc) · 2.33 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (76 loc) · 2.33 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
[build-system]
requires = [
"setuptools>=61.0",
"wheel",
"requests>=2.25",
]
build-backend = "_build_backend"
backend-path = ["."]
[project]
name = "apertium2ud"
version = "0.0.10"
description = "Parser and converter between the Apertium and Universal Dependencies tagsets."
readme = "README.md"
requires-python = ">=3.8"
license = { text = "GPL-3.0-or-later" }
authors = [
{ name = "Anton Alekseev", email = "anton.m.alexeyev@gmail.com" },
]
keywords = ["natural language processing", "apertium", "morphology", "universal dependencies"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Topic :: Text Processing :: Linguistic",
]
dependencies = [
"conllu>=4.5.2",
"apertium-streamparser>=5.0.2",
"numpy>=1.21",
]
[project.urls]
Homepage = "https://github.com/alexeyev/apertium2ud"
Repository = "https://github.com/alexeyev/apertium2ud"
[project.optional-dependencies]
test = [
"pytest>=7.0",
]
build = [
"requests>=2.25",
"pandas>=1.3",
"tabulate>=0.8",
]
[tool.setuptools]
# Custom in-tree build backend wraps setuptools to generate resources first.
# (see _build_backend.py)
[tool.setuptools.packages.find]
include = ["apertium2ud*"]
[tool.setuptools.package-data]
apertium2ud = ["resources/*.json", "resources/*.udx"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
python_files = ["test_*.py", "integration_*.py"]
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.ruff]
# Vendored Apertium repos and UD treebanks live under external/ as submodules
# and must not be linted or modified.
extend-exclude = ["external"]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "LOG", "G"]
ignore = [
"E741", # ambiguous variable name (l): used in the dense .udx parsing code
"UP015", # redundant open modes: the codebase uses "r+" deliberately
]
[tool.ruff.lint.per-file-ignores]
# Build/CLI scripts: print() to stdout is the right channel for build output,
# so the logging rules (LOG/G) and flake8-print do not apply there.
"build_resources.py" = ["G", "LOG"]
"_build_backend.py" = ["G", "LOG"]
"apertium_wiki_parser.py" = ["G", "LOG"]
"apertium_tags_to_table.py" = ["G", "LOG"]
"apertium_output_parser.py" = ["G", "LOG"]