-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (104 loc) · 3.2 KB
/
pyproject.toml
File metadata and controls
117 lines (104 loc) · 3.2 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "techiaith-language"
version = "25.10.27"
authors = [{ name = "Matt Russell", email = "m.russell@bangor.ac.uk" }]
requires-python = ">=3.10"
keywords = ["NMT", "MT", "translation", "language"]
description = "A library for working with natural languages within the context of Machine Translation (MT) tasks."
license = { text = "MIT" }
readme = { file = "README.md", content-type = "text/markdown" }
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Text Processing :: Linguistic",
"Topic :: Software Development :: Pre-processors",
"Topic :: Software Development :: Localization",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: Welsh",
"Natural Language :: English",
"Operating System :: OS Independent",
]
dependencies = [
"backports.tarfile", # for langcodes on Python <= 3.12
"gcld3>=3.0.13",
"language-data>=1.0",
"langcodes>=3.5.0",
"pycld2>=0.4.1",
"requests>=2.32.5",
]
[project.optional-dependencies]
dev = ["ruff", "pytest", "pytest-cov", "mypy", "types-requests", "wheel"]
docs = [
"mkdocs-material==9.6.16",
"mdx-include>=1.4.1,<2.0.0",
"mkdocs-redirects>=1.2.1,<1.3.0",
"typer==0.16.0",
"pyyaml>=5.3.1,<7.0.0",
"pillow>=11.0.0",
"cairosvg>=2.8.0",
"mkdocstrings[python]==0.26.1",
"griffe-typingdoc==0.2.9",
"mkdocs-macros-plugin==1.4.0",
]
[project.urls]
"Homepage" = "https://github.com/techiaith/language"
"Bug Tracker" = "https://github.com/techiaith/language/issues"
[tool.setuptools]
license-files = ["LICENSE"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.mypy]
mypy_path = "src"
packages = ["techiaith"]
python_version = "3.12"
warn_unused_configs = true
allow_redefinition = false
explicit_package_bases = true
ignore_missing_imports = true
implicit_reexport = false
namespace_packages = true
no_implicit_optional = true
[[tool.mypy.overrides]]
module = ["yaml"]
ignore_missing_imports = true
[tool.ruff]
# Same line length as black's default
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by ruff formatter
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
per-file-ignores = {"tests/techiaith/test_language.py" = ["E501"]}
[tool.ruff.format]
# Use double quotes for strings
quote-style = "double"
# Indent with spaces
indent-style = "space"
# Like black, respect magic trailing commas
skip-magic-trailing-comma = false
# Like black, automatically detect line endings
line-ending = "auto"
[tool.pytest.ini_options]
filterwarnings = [
"ignore:.*imp module.*deprecated",
"ignore:.*invalid escape sequence:DeprecationWarning",
"ignore:.*declare_namespace.*:DeprecationWarning",
"ignore:.*pkg_resources is deprecated",
]