-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
135 lines (121 loc) · 2.86 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
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
[project]
name = "officialeye"
version = "1.2.2"
description = "AI-powered generic document-analysis tool"
authors = [
{name = "Alexander Mayorov", email = "zb@zerobone.net"},
]
dependencies = [
"click>=8.1.7",
"numpy>=1.26.2",
"opencv-contrib-python-headless",
"pytesseract",
"pyyaml",
"strictyaml==1.7.3",
"z3-solver",
"rich"
]
requires-python = ">=3.10"
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
]
[project.scripts]
officialeye = "officialeye._cli.main:main"
[project.urls]
Homepage = "https://github.com/ZeroBone/OfficialEye"
Documentation = "https://officialeye.zerobone.net"
Issues = "https://github.com/ZeroBone/OfficialEye/issues"
[tool.pdm]
distribution = "false"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.scripts]
# documentation-related scripts
docs-serve = "mkdocs serve"
docs-build = "mkdocs build"
docs-deploy = "mkdocs gh-deploy --force"
# other scripts
count-loc = {shell = "find src -name '*.py' | xargs wc -l"}
# scripts to be called by the CI (i.e., GitHub actions)
ci-pytest = {shell = "pytest src/tests/"}
ci-ruff = {shell = "ruff check --output-format=github"}
# scripts to be run by developers to make sure that pull requests do not break anything
dev-docs = {shell = "mkdocs build"}
dev-ruff = {shell = "ruff check"}
dev-pytest = {shell = "pytest src/tests/"}
[tool.pdm.dev-dependencies]
doc = [
"mkdocs-material",
"mkdocs-material[imaging]",
"mkdocs-minify-plugin",
"mkdocstrings",
"mkdocstrings[python]",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-macros-plugin"
]
test = [
"pytest"
]
lint = [
"ruff"
]
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv"
]
line-length = 150
target-version = "py310"
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = [
"D417",
"SIM108", # Usage of ternary operators instead of if-then-else
"SIM117" # Use a single `with` statement with multiple contexts instead of nested `with` statements
]
[tool.ruff.lint.pydocstyle]
convention = "google"