-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
86 lines (75 loc) · 2.13 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
[tool.poetry]
name = "unique-matcher"
version = "0.7.3"
description = ""
authors = ["staticf0x <[email protected]>"]
readme = "README.md"
packages = [{include = "unique_matcher"}]
[tool.poetry.dependencies]
python = "~3.11"
numpy = "^1.25.1"
opencv-python = "^4.8.0.74"
pillow = "^10.3.0"
loguru = "^0.7.1"
pytesseract = "^0.3.10"
jinja2 = "^3.1.5"
pyside6 = "~6.5.2"
[tool.poetry.group.dev.dependencies]
devtools = {extras = ["pygments"], version = "^0.12.2"}
types-pillow = "^10.0.0.2"
pytest = "^8.1.1"
mypy = "^1.5.1"
pytest-xdist = {extras = ["psutil"], version = "^3.3.1"}
black = "^24.3.0"
isort = "^5.12.0"
ruff = "^0.3.3"
pytest-cov = "^4.1.0"
tabulate = "^0.9.0"
simple-term-menu = "^1.6.1"
rich = "^13.5.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
target-version = ["py311"]
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 100
target-version = "py311"
# For rule groups and specific rules, see:
# https://beta.ruff.rs/docs/rules/
select = ["ALL"]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"D406", # Section name should end with a newline
"D407", # Missing dashed underline after section
"D203", # 1 blank line required before class docstring (incompatible with D211)
"D213", # Multi-line docstring summary should start at the second line (incompatible with D212)
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"TD",
]
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.per-file-ignores]
"tests/*" = [
"ANN", # All type annotations
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"S101", # Use of `assert` detected
"PLR2004", # Magic value used in comparison
"SLF001", # Private member access
]
"unique_matcher/constants.py" = [
"ERA001",
]
"items.py" = ["T201", "SIM115"]
"main.py" = ["S701"]
"benchmark.py" = ["T201"]
[[tool.mypy.overrides]]
module = "pytesseract"
ignore_missing_imports = true