-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (135 loc) · 3.13 KB
/
pyproject.toml
File metadata and controls
152 lines (135 loc) · 3.13 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "scribe-data"
version = "5.1.4"
description = "Wikidata and Wiktionary language data extraction"
readme = "README.md"
requires-python = ">=3.12"
keywords = ["wikidata", "lexemes", "cli", "data", "etl", "elt"]
authors = [{ name = "Andrew Tavis McAllister", email = "team@scri.be" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
]
dependencies = [
"emoji==2.15.0",
"orjson==3.11.7",
"packaging==26.0",
"pyyaml==6.0.3",
"questionary==2.1.1",
"requests==2.33.1",
"rich==14.3.3",
"sparqlwrapper==2.0.0",
"tqdm==4.67.3",
]
[project.optional-dependencies]
dev = [
"mypy>=1.19.1",
"prek>=0.3.8",
"pytest>=9.0.2",
"pytest-cov>=7.1.0",
"ruff>=0.15.8",
"setuptools>=82.0.1",
]
docs = [
# Keep docs dependencies formatted in this way with ruff to allow for upgrades via VS Code extension.
"m2r2>=0.3.4",
"numpydoc>=1.10.0",
"sphinx-rtd-theme>=3.1.0",
]
[project.scripts]
scribe-data = "scribe_data.cli.main:main"
[project.urls]
Homepage = "https://github.com/scribe-org/Scribe-Data"
[tool.setuptools]
package-dir = { "" = "src" }
license-files = ["LICENSE.txt"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"scribe_data.unicode" = ["2021_ranked.tsv"]
[tool.pytest.ini_options]
pythonpath = "src"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
"*/tests.py",
"*/migrations/*.py",
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"venv",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
]
ignore = [
"E501", # line too long, handled by black
]
fixable = ["I"]
unfixable = []
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds the following value.
max-complexity = 10
[tool.isort]
line_length = 88
[tool.coverage.run]
omit = ["*/tests/*", "*/__init__.py"]
[tool.mypy]
disable_error_code = [
"arg-type",
"assignment",
"attr-defined",
"call-arg",
"call-overload",
"comparison-overlap",
"func-returns-value",
"import-untyped",
"index",
"list-item",
"misc",
"no-any-return",
"no-redef",
"operator",
"return",
"return-value",
"type-arg",
"union-attr",
"valid-type",
"var-annotated",
]
mypy_path = "src"
ignore_missing_imports = true
strict = true
[tool.numpydoc_validation]
checks = [
"all", # report on all checks, except the below
"ES01",
"EX01",
"SA01",
]