-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (68 loc) · 2.49 KB
/
pyproject.toml
File metadata and controls
78 lines (68 loc) · 2.49 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
[project]
name = "reynir-correct"
version = "4.1.1"
description = "Spelling and grammar correction for Icelandic"
authors = [{ name = "Miðeind ehf.", email = "mideind@mideind.is" }]
readme = { file = "README.rst", content-type = "text/x-rst" }
license = { file = "LICENSE.txt" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Natural Language :: Icelandic",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Topic :: Text Processing :: Linguistic",
]
requires-python = ">=3.9"
dependencies = ["reynir>=3.5.7", "icegrams>=1.1.2", "typing_extensions"]
[project.urls]
Repository = "https://github.com/mideind/GreynirCorrect"
[project.optional-dependencies]
# dev dependencies
dev = ["pytest"]
# sentence_classifier dependencies
sentence_classifier = ["transformers", "datasets", "torch"]
[project.scripts]
# 'correct' command line tool
correct = "reynir_correct.main:main"
# *** Configuration of tools ***
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"reynir_correct" = ["config/*"]
[tool.pytest.ini_options]
filterwarnings = [
# Ignore deprecation warnings in libraries, their problem not ours
"ignore::DeprecationWarning",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
#select = ["ALL"] # We use default rules for now
extend-select = ["E501"] # Complain about line length
# Ignore specific rules
# (we should aim to have these as few as possible)
ignore = [
"F405", # 'F405: Name may be undefined, or defined from star imports: typing'
"E731", # 'E731: Do not assign a lambda expression, use a def'
]
[tool.isort]
# This forces these imports to placed at the top
known_future_library = ["__future__", "typing", "typing_extensions"]
line_length = 120