-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
71 lines (60 loc) · 1.57 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
[project]
name = "CoverSnap"
version = "0.0.4"
description = "a convenient Python library for capturing cover image from video"
authors = [
{ name = "Tohrusky", email = "65994850+Tohrusky@users.noreply.github.com" },
]
dependencies = [
"opencv-python",
"Pathlib",
]
requires-python = ">=3.8"
readme = "README.md"
license = { text = "MIT" }
classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
[project.urls]
Homepage = "https://github.com/Biu-X/CoverSnap"
Repository = "https://github.com/Biu-X/CoverSnap"
[tool.pdm.dev-dependencies]
pytest = [
"pytest~=7.3.2",
"pytest-cov~=4.1.0",
]
lint = [
"pre-commit"
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project.scripts]
coversnap = "coversnap.__main__:main"
[tool.pdm.scripts.dev]
composite = [
"pdm install --dev"
]
help = "Install the dev packages"
[tool.pdm.scripts.test]
cmd = "pytest --cov=src --cov-config=.coveragerc --cov-report=xml --cov-report=html"
help = "Run tests with coverage"
#[tool.pdm.scripts.pre_test]
#composite = [
# "pdm run lint"
#]
#help = "pre_test hook: Installs the dev packages, then run linting before running tests"
[tool.pdm.scripts.lint]
cmd = "pre-commit run --all-files"
help = "Check code style against linters using pre-commit"
[tool.pdm.scripts.pre_lint]
composite = [
"pre-commit install"
]
help = "pre_lint hook: Installs pre-commit hooks"
[tool.mypy]
ignore_missing_imports = true
strict = true