-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
104 lines (92 loc) · 2.66 KB
/
Copy pathpyproject.toml
File metadata and controls
104 lines (92 loc) · 2.66 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
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "readsight"
version = "1.0.5"
description = "Multilingual readability library for Python — 86 languages, 17 formulas, TeX-based syllable counting via Frank M. Liang algorithm."
readme = "README.md"
license = {text = "MIT"}
authors = [{name = "Yevhen Leonidov", email = "leonidovev@gmail.com"}]
keywords = [
"readability", "syllable", "hyphenation", "flesch-kincaid",
"gunning-fog", "smog", "coleman-liau", "ari", "lix", "gulpease",
"wiener-sachtextformel", "multilingual", "tex", "liang"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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 :: Scientific/Engineering :: Information Analysis",
]
requires-python = ">=3.10"
dependencies = [
"regex>=2023.0.0",
"platformdirs>=3.0.0",
]
[project.urls]
Homepage = "https://github.com/MADEVAL/ReadSightPy"
Issues = "https://github.com/MADEVAL/ReadSightPy/issues"
Source = "https://github.com/MADEVAL/ReadSightPy"
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=4.0",
"mypy>=1.0",
"ruff>=0.1.0",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
readsight = ["data/languages/*.json", "data/patterns/*.tex"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.ruff]
target-version = "py310"
line-length = 120
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", "F", "I", "N", "W",
"UP", "B", "C4", "SIM",
"RUF",
]
ignore = ["RUF001", "N806", "N818"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.mypy]
strict = true
python_version = "3.10"
exclude = ["tests/"]
check_untyped_defs = true
warn_unused_ignores = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
warn_return_any = true
[tool.coverage.run]
source = ["src/readsight"]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@abstractmethod",
]