-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
65 lines (56 loc) · 1.48 KB
/
pyproject.toml
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
[project]
name = "extractors"
version = "0.55.2"
description = ""
authors = [
{name = "DevScanr Team", email = "[email protected]"}
]
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"markdown == 3.7.*",
"spacy == 3.8.*",
"lingua-language-detector == 2.0.*",
"urlextract == 1.9.*",
"beautifulsoup4 (>=4.13.3,<5.0.0)",
"emoji == 2.14.*",
"poetry == 2.1.*",
]
[project.optional-dependencies]
mypy = ["mypy == 1.14.*"]
pytest = ["pytest == 8.3.*"]
ruff = ["ruff == 0.9.*"]
types-beautifulsoup4 = ["types-beautifulsoup4 == 4.12.0.*"]
types-markdown = ["types-markdown == 3.7.0.*"]
# jupyterlab = ["jupyterlab == 4.2.*"]
psutil = ["psutil == 6.1.*"]
# spacy-universal-sentence-encoder = "^0.4.6"
[tool.poetry]
package-mode = true
[tool.poe.env]
PYTHONPATH = "."
[tool.poe.tasks]
build = "poetry build --format=wheel"
tc = "poetry run mypy ."
test = "poetry run pytest --disable-warnings"
lint = "poetry run ruff check"
[tool.mypy]
strict = true
disallow_untyped_calls = false
no_implicit_reexport = false
exclude = [
"^ignore",
]
[tool.ruff.lint]
select = ["F", "B", "UP", "RUF"]
ignore = ["E701", "E711", "E712", "E731", "E741", "F541", "RUF001", "RUF002", "RUF003", "RUF021"]
per-file-ignores = {"__init__.py" = ["F403"]}
[tool.pytest.ini_options]
testpaths = ["extractors"]
# addopts = "--ignore=ignore"
python_files = "*_test.py"
#python_classes = ["*__*"]
#python_functions = ["*__*"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"