-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
104 lines (95 loc) · 1.69 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
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
[tool.poetry]
name = "domsdatabasen"
description = "Scraper and PDF text processor for domsdatabasen.dk"
version = "0.1.4"
authors = [
"Oliver Kinch <[email protected]>",
]
readme = "README.md"
license = "MIT"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
hydra-core = "^1.3.2"
datasets = "^2.17.1"
easyocr = "^1.7.1"
img2table = "^1.2.11"
jsonlines = "^4.0.0"
numpy = "^1.26.4"
omegaconf = "^2.3.0"
pdf2image = "^1.17.0"
pypdf = "^4.0.2"
tika = "^2.6.0"
scikit-image = "^0.22.0"
selenium = "^4.18.1"
tabulate = "^0.9.0"
webdriver-manager = "^4.0.1"
poppler-utils = "^0.1.0"
[build-system]
requires = [
"poetry-core>=1.0.0"
]
build-backend = "poetry.core.masonry.api"
[tool.poetry.group.dev.dependencies]
pytest = ">=7.4.2"
pytest-xdist = "^3.3.1"
pytest-cov = "^4.1.0"
pre-commit = "^3.5.0"
pdoc = "^14.1.0"
readme-coverage-badger = ">=0.1.2,<1.0.0"
click = "^8.1.7"
[[tool.poetry.source]]
name = "pypi"
[tool.black]
line-length = 88
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
)/
'''
[tool.ruff]
target-version = "py310"
extend-select = [
"I",
"D",
]
exclude = [
"src/domsdatabasen/_xpaths.py",
]
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.extend-per-file-ignores]
"__init__.py" = [
"F401",
]
"src/scripts/your_script.py" = [
"I",
]
[tool.pytest.ini_options]
minversion = "7.0"
addopts = [
'--verbose',
'--durations=10',
'--color=yes',
'-s',
'-vv',
'--doctest-modules',
]
xfail_strict = true
filterwarnings = [
"error",
"ignore::UserWarning",
"ignore::DeprecationWarning",
"ignore::ImportWarning",
]
log_cli_level = "info"
testpaths = [
"tests",
"src/domsdatabasen",
]